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


Please Help Members By Posting Answers For Below Questions

There seem to be a few missing operators ..

817


What is the difference between array and linked list in c?

868


What are near, far and huge pointers?

842


Write a program to print "hello world" without using a semicolon?

847


What are the two types of functions in c?

770


What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?

1176


What is keyword in c?

791


write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?

1927


What language is c written?

754


What is the use of #include in c?

812


string reverse using recursion

2084


A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler

864


What is #include cctype?

821


What is the acronym for ansi?

809


a number whose only prime factors are 2,3,5, and 7 is call humble number,,write a program to find and display the nth element in this sequence.. sample input : 2,3,4,11,12,13, and 100.. sample output : the 2nd humble number is 2,the 3rd humble number is 3,the 4th humble number is ,the 11th humble number is 12, the 12th humble number is 14, the 13th humble number is 15, the 100th humble number is 450.

4811