Pass by value in c

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

Declaration of function in c

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

defining a function in c

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

function in c

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

matrix operations in c

matrix operations in c matrix multiplication: To multiply two matrixes sufficient and necessary condition is “number of columns in matrix A = number of rows in matrix B”. Loop for each row in matrix A. Loop for each columns in matrix B and initialize...

matrix addition in c

matrix addition in c PROGRAM: #include<stdio.h> #include<conio.h> int main() {  int mata[3][3],matb[3][3],matc[3][3];  int r,c,k;  for(r=0; r<3; r++)  {   for(c=0; c<3; c++)   {     printf(“Enter first matrix : “);    ...