Call by Value and Call by Reference in C

Call by Value and Call by Reference in C

Argument passing (change(a,b), change(x,y))is a technique for transferring data and information between the calling and called function. There are two ways to pass arguments to the called function: a)Call by Value b)Call by reference. Call by Value: The call by value method is the default technique for passing arguments. In this method only the copies … Read more

What is C Programming?

What is C Programming

The C Programming language is more than 40 years of old. It got its name because it was influenced by a now almost forgotten programming language called B(which was in turn derived from BCPL) C has gone on to spawn a lot other languages, utilized for both general and niche purposes.C itself, though, has never … Read more

Pointers in C with Example

Pointers in C with Example

Introduction of Pointer in C A pointer is a variable in the C Programming Language that holds the address of another variable of the same data type. For example, an integer variable contains an integer value, however, an integer pointer holds the address of an integer variable. Pointers in C have derived data types. Whenever a variable … Read more

Functions in C

Functions in C

The need for C functions When we write programs, sometimes it happens that we have to type any code repeatedly, so to avoid this situation, we create C functions. Creating function reduces the consumption of memory space and we can use that code in the program when needed. With the help of the function, we … Read more

C Array

C Array

The data of the array is stored in a linear list that is addressed differently by the index given in the square brackets.