Write code for initializing one dimentional and two
dimentional array in a C Program?

Answer Posted / kalpana.y

array:array is a collection of elements
one dimensional array:
code:
datatype arraysize[];
eg:
int a[5];
two-dimensional array:
code:
datatype array[rowsize][columnsize];
eg:
int a[5][5];

Is This Answer Correct ?    14 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define Array of pointers.

621


Can a file other than a .h file be included with #include?

672


Which header file is essential for using strcmp function?

927


How can I call a function with an argument list built up at run time?

621


In c programming write a program that will print 10 multiples of 3 except 15,18,21 using looping

968






What is spaghetti programming?

658


Difference between goto, long jmp() and setjmp()?

693


An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array

677


What is difference between array and pointer in c?

530


What is the use of header files?

588


Who is the main contributor in designing the c language after dennis ritchie?

536


What is a macro, and explain how do you use it?

615


What is the difference between pure virtual function and virtual function?

641


Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?

568


What are the advantages of c preprocessor?

699