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


Please Help Members By Posting Answers For Below Questions

How to compare array with pointer in c?

615


What library is sizeof in c?

561


What is mean by data types in c?

545


What is the difference between memcpy and memmove?

597


What are external variables in c?

539






What is difference between array and structure in c?

573


Is it cc or c in a letter?

553


What does the file stdio.h contain?

597


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.

14948


Explain what is the purpose of "extern" keyword in a function declaration?

613


Is there sort function in c?

572


What are the various types of control structures in programming?

621


When can a far pointer be used?

584


Explain why can’t constant values be used to define an array’s initial size?

850


Why are some ANSI/ISO Standard library routines showing up as undefined, even though I've got an ANSI compiler?

660