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 can I write a function analogous to scanf?

910


Explain zero based addressing.

809


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

2265


What is a c token and types of c tokens?

834


How can you read a directory in a C program?

910


What is the difference between c and python?

835


Can we change the value of static variable in c?

781


can we implement multi-threads in c.

903


What is pass by reference in c?

880


What do you mean by a local block?

850


What is indirection?

852


What is the symbol indicated the c-preprocessor?

961


a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor

860


How can I get random integers in a certain range?

814


What are enums in c?

866