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...
by admin | May 26, 2015 | sem1
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...
by admin | May 26, 2015 | sem1
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 : “); ...
by admin | May 26, 2015 | sem1
matrix multiplication in c PROGRAM: #include <stdio.h> void read_matrix(int m2[][3] ) { int i, j; printf(“input values for matrix in order of rows first \n”); for (i = 0; i < 3; i++) { for (j = 0; j < 3; j++) {...