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...
by admin | May 26, 2015 | sem1
Pass by value in c 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...
by admin | May 26, 2015 | sem1
Declaration of function in c A function declaration tells the compiler about a function name and how to call the function. The actual body of the function can be defined separately. A function declaration has the following parts: return_type function_name( parameter...
by admin | May 26, 2015 | sem1
defining a function in c The general form of a function definition in C programming language is as follows: return_type function_name( parameter list ) { body of the function } A function definition in C programming language consists of a function header and...
by admin | May 26, 2015 | sem1
function 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. How you...