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 a buffer in c?
Explain the red-black trees?
Discuss the function of conditional operator, size of operator and comma operator with examples.
What does the characters “r” and “w” mean when writing programs that will make use of files?
write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)
Create a simple code fragment that will swap the values of two variables num1 and num2.
What is variable in c example?
What is malloc return c?
What is a list in c?
Explain what is the purpose of "extern" keyword in a function declaration?
What is "Duff's Device"?
Which is the best website to learn c programming?
How can I implement sets or arrays of bits?
What is the use of pragma in embedded c?
Why does the call char scanf work?