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 / subhrajeet sairam mohanty
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 ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is sizeof in c?
What is a stream in c programming?
How can I find the modification date and time of a file?
What is a 'null pointer assignment' error?
How does sizeof know array size?
Explain the difference between strcpy() and memcpy() function?
What is the size of enum in bytes?
How is actual parameter different from the formal parameter?
How do you search data in a data file using random access method?
How is pointer initialized in c?
What is a good data structure to use for storing lines of text?
How does free() know explain how much memory to release?
What are types of structure?
What are the functions to open and close file in c language?
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?