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

What are c preprocessors?

687


Stimulate calculator using Switch-case-default statement for two numbers

2458


What is the difference between struct and union in C?

582


What is p in text message?

549


How to write a code for implementing my own printf() and scanf().... Please hep me in this... I need a guidance... Can you give an coding for c... Please also explain about the header files used other than #include...

4910






Explain why C language is procedural?

778


If null and 0 are equivalent as null pointer constants, which should I use?

589


What is the explanation for prototype function in c?

579


What is external variable in c?

621


How is a macro different from a function?

661


What is modifier & how many types of modifiers available in c?

616


What is the collection of communication lines and routers called?

622


Explain the ternary tree?

613


Why string is used in c?

591


What is type qualifiers?

671