C pointers – introduction

There are certain tasks in C programming and other languages like PHP, what can only be done with pointers, like reading from a file requires a file pointer. Also to have a good understanding of pointers can give a great confidence to start improving the memory usage...

Array in c

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...

Structures in c – basics

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...

C programming – where to start

I think to have a decent understanding of c, or start learning c programming  is really good even if somebody is not planning to work with the language itself. Most of the languages are based on c or are in some way related to it. Most of the currently used popular...

C typedef basics

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:...

C primitive data types

In the C programming language variables are declared before the program itself starts, before functionality. This applies to functions also. With an example: main(){ int iCnt = 0; int iValue = myFunc(); }//end main int myFunc(){ return 1; }//end myFunc The following...