<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>procedural programming on </title>
    <link>/tags/procedural-programming/</link>
    <description>Recent content in procedural programming on </description>
    <generator>Hugo -- gohugo.io</generator>
    <lastBuildDate>Wed, 18 Sep 2013 20:41:14 +0000</lastBuildDate><atom:link href="/tags/procedural-programming/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Array in c</title>
      <link>/array-in-c/</link>
      <pubDate>Wed, 18 Sep 2013 20:41:14 +0000</pubDate>
      
      <guid>/array-in-c/</guid>
      <description>Arrays in any programming language is one of the “power tools” you can use to organize data of same type. On the positive side elements of an array can be accessed in constant time because of the maintained indexes. On the downside array is fixed size and taking space after each other in memory which is not to efficient.
Array declaration and accessing elements works as in other languages, with an example:</description>
    </item>
    
    <item>
      <title>Structures in c – basics</title>
      <link>/structures-c-basics/</link>
      <pubDate>Thu, 12 Sep 2013 20:43:23 +0000</pubDate>
      
      <guid>/structures-c-basics/</guid>
      <description>Structures in c are used to represent data what have connections to each other in a single variable. This could be a record from a database.
Structures can be declared outside the functions to give access for all the function in the program. Other options for declaration is in the main header file(good idea), or inside main or other function which would make it available only for local use. A good practice is to not only declare the structure by create a type of that structure.</description>
    </item>
    
    <item>
      <title>C typedef basics</title>
      <link>/c-typedef-basics/</link>
      <pubDate>Sun, 25 Aug 2013 20:51:14 +0000</pubDate>
      
      <guid>/c-typedef-basics/</guid>
      <description>If c is not your first language, you will really miss boolean primitive type. In other languages boolean is already defined, but in c there is no such type, it is actually using integer values instead.
It is really simple to implement a boolean value with typedef:
Other option is to include stdbool.h.
Using typedef as an alias makes code more readable.
The example above shows that accessing the values is along the same rules as using struct.</description>
    </item>
    
  </channel>
</rss>
