by admin | May 26, 2015 | sem1
structures in c C arrays allow you to define type of variables that can hold several data items of the same kind but structure is another user defined data type available in C programming, which allows you to combine data items of different kinds. Structures are used...
by admin | May 26, 2015 | sem1
Pointers and arrays in c Before we understand the concept of arrays of pointers, let us consider the following example, which makes use of an array of 3 integers: #include <stdio.h> const int MAX = 3; int main () { int var[] = {10, 100, 200}; int i; for (i = 0;...
by admin | May 26, 2015 | sem1
Pointers arithmetic in c As explained in main chapter, C pointer is an address, which is a numeric value. Therefore, you can perform arithmetic operations on a pointer just as you can a numeric value. There are four arithmetic operators that can be used on pointers:...
by admin | May 26, 2015 | sem1
pointers in c Pointers in C are easy and fun to learn. Some C programming tasks are performed more easily with pointers, and other tasks, such as dynamic memory allocation, cannot be performed without using pointers. So it becomes necessary to learn pointers to become...
by admin | May 26, 2015 | sem1
Recursion in c Recursion is the process of repeating items in a self-similar way. Same applies in programming languages as well where if a programming allows you to call a function inside the same function that is called recursive call of the function as follows. void...
by admin | May 26, 2015 | sem1
pass by reference in c The call by reference method of passing arguments to a function copies the address of an argument into the formal parameter. Inside the function, the address is used to access the actual argument used in the call. This means that changes made...