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

Answer Posted / dinesh kumar

static int [5]={2,3,4,5,6};
for one dimensional array
static int[3][3]={1,2,3,4,5,6};
for two dimensional array it consider as rows and columns

Is This Answer Correct ?    7 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Where does the name "C" come from, anyway?

895


Which node is more powerful and can handle local information processing or graphics processing?

1106


What is function pointer c?

814


What are qualifiers and modifiers c?

766


Suggesting that there can be 62 seconds in a minute?

826


In c programming language, how many parameters can be passed to a function ?

898


Find duplicates in a file containing 6 digit number (like uid) in O (n) time.

2984


What is indirection?

854


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

1108


Do you know null pointer?

806


What is the explanation for the dangling pointer in c?

908


What does %c do in c?

799


What is nested structure with example?

845


What are header files in c?

839


Using functions, write a program that multiplies two arrays. Use the following functions: - Function ReadArray - Function MultiplyArrays - Function DisplayArrays

2135