sushmita
asked
Mar 27, 2017
392
views
Virtual Gate Test Series: Programming & DS - Output Of The Program
What does the following program print? int data[3][4] = {{1, 2, 3, 4}, {5, 6, 7, 8}, {9, 10, 11, 12}}; int main(void) { int r, c; for(r = 0; r < 3; r++) for(c = 0; c < 4; c++) if(r != c) printf("%3d,", *(*(data + c) + r) + 10); return 0; }
What does the following program print?int data[3][4] = {{1, 2, 3, 4}, {5, 6, 7, 8}, {9, 10, 11, 12}}; int main(void) { int r, c; for(r = 0; r < 3; r++) for(c = 0; c < 4; ...