Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is sizeof in c?

1055


What is a stream in c programming?

1232


How can I find the modification date and time of a file?

1126


What is a 'null pointer assignment' error?

1252


How does sizeof know array size?

1171


Explain the difference between strcpy() and memcpy() function?

1065


What is the size of enum in bytes?

1136


How is actual parameter different from the formal parameter?

1062


How do you search data in a data file using random access method?

1360


How is pointer initialized in c?

1093


What is a good data structure to use for storing lines of text?

1139


How does free() know explain how much memory to release?

1111


What are types of structure?

1171


What are the functions to open and close file in c language?

1260


Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?

1169