Skip to main content

Posts

Showing posts with the label c language interview programs

Sample C Program To Transpose A Matrix .

C Program To Find Transpose a 3 * 2 matrix. #include <stdio.h> #include <conio.h> #include <stdlib.h> main() { int arr[3] [2]; int i, j; clrscr(); printf(" Enter the 6 elements of matrix\ n "); for( i = 0; i < 3; i++ )    for( j = 0; j < 2; j++ )        scanf(" %d ", &arr[i] [j]);   printf(" The matrix is \n "); for( i = 0; i < 3; i++ )   { ...