while initialization of two dimensional arrays we can
initialize like a[][2] but why not a[2][] is there any
reason behind this?
Answer Posted / prady
2 dimension array a[row][col]; in this 'col' indicates size
of block,and 'row' indicates no. of blocks.
Compiler prefer memory unit size first rather no.of memory
units.
| Is This Answer Correct ? | 25 Yes | 1 No |
Post New Answer View All Answers
What is the size of structure pointer in c?
Can a file other than a .h file be included with #include?
What does printf does?
Why pointers are used in c?
What is difference between function overloading and operator overloading?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
Explain the use of function toupper() with and example code?
What is meant by keywords in c?
Why is c still so popular?
What is string in c language?
what is bit rate & baud rate? plz give wave forms
What is action and transformation in spark?
What is sizeof in c?
What does. int *x[](); means ?
How can I implement sets or arrays of bits?