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 / vignesh1988i
the main reason behind this is that, if we specify the
columns instead of rows we can easily find out the number of
rows in the matrix...... but if we give just row number we
cant predict the number of columns...... that's why !!!!!!
thnak u
Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
How to compare array with pointer in c?
What library is sizeof in c?
What is mean by data types in c?
What is the difference between memcpy and memmove?
What are external variables in c?
What is difference between array and structure in c?
Is it cc or c in a letter?
What does the file stdio.h contain?
write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.
Explain what is the purpose of "extern" keyword in a function declaration?
Is there sort function in c?
What are the various types of control structures in programming?
When can a far pointer be used?
Explain why can’t constant values be used to define an array’s initial size?
Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?