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
There seem to be a few missing operators ..
What is the difference between array and linked list in c?
What are near, far and huge pointers?
Write a program to print "hello world" without using a semicolon?
What are the two types of functions in c?
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
What is keyword in c?
write a sorting prgm to sort 50 nos and sum them and also remove all the occurrences of 15 and print it?
What language is c written?
What is the use of #include in c?
string reverse using recursion
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
What is #include cctype?
What is the acronym for ansi?
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.