hi all
i want to initialize 2 dimension array in C and i need to print this array with the summation... any idea can help me with this code..
i want to initialize 2 dimension array in C and i need to print this array with the summation... any idea can help me with this code..
Code:
#include <stdio.h> void main() { int i,j; int table[i][j]; table[2][2] = { { 1, 2},{ 4, 5} }; printf("%d\t",table[2][2]); printf("\n"); // sum // 1+4 and 2+5 }
Comment