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


Please Help Members By Posting Answers For Below Questions

Where register variables are stored in c?

770


what do you mean by enumeration constant?

798


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.

1980


What is void pointers in c?

794


What is structure packing in c?

836


What is page thrashing?

865


What is the function of this pointer?

912


What are pointers? What are different types of pointers?

837


Explain what’s a signal? Explain what do I use signals for?

809


Is c is a high level language?

877


why we wont use '&' sing in aceesing the string using scanf

2095


What are near, far and huge pointers?

854


What is the explanation for the dangling pointer in c?

903


How many types of arrays are there in c?

799


What are high level languages like C and FORTRAN also known as?

929