,

37. Pointers

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…
,

36. Arrays - Pointer to Array

It is most likely that you would not understand this section until you are through with the chapter 'Pointers'.Assuming you have some understanding of pointers in C, let us start: An array name is a constant pointer to the first element…
,

35. Arrays - Returning Arrays

C programming does not allow to return an entire array as an argument to a function. However, you can return a pointer to an array by specifying the array's name without an index.If you want to return a single-dimension array from a function,…
,

34. Arrays - Passing Arrays as Arguments

If you want to pass a single-dimension array as an argument in a function, you would have to declare a formal parameter in one of following three ways and all three declaration methods produce similar results because each tells the compiler…
,

33. Arrays - Multi-dimensional arrays

C programming language allows multidimensional arrays. Here is the general form of a multidimensional array declaration − type name[size1][size2]...[sizeN];For example, the following declaration creates a three dimensional integer array…
,

32. Arrays - Introduction

Arrays a kind of data structure that can store a fixed-size sequential collection of elements of the same type. An array is used to store a collection of data, but it is often more useful to think of an array as a collection of variables of…
,

31. Scope Rules

A scope in any programming is a region of the program where a defined variable can have its existence and beyond that variable it cannot be accessed. There are three places where variables can be declared in C programming language −Inside…
, ,

30. Functions - Call by Reference

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. It means the changes made…
,

29. Functions - Call by Value

The call by value method of passing arguments to a function copies the actual value of an argument into the formal parameter of the function. In this case, changes made to the parameter inside the function have no effect on the argument.By…
,

28. Functions in C

A function is a group of statements that together perform a task. Every C program has at least one function, which is main(), and all the most trivial programs can define additional functions.You can divide up your code into separate functions.…