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
Where register variables are stored in c?
what do you mean by enumeration constant?
4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.
What is void pointers in c?
What is structure packing in c?
What is page thrashing?
What is the function of this pointer?
What are pointers? What are different types of pointers?
Explain what’s a signal? Explain what do I use signals for?
Is c is a high level language?
why we wont use '&' sing in aceesing the string using scanf
What are near, far and huge pointers?
What is the explanation for the dangling pointer in c?
How many types of arrays are there in c?
What are high level languages like C and FORTRAN also known as?