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
What are the advantages of c language?
Can you write a programmer for FACTORIAL using recursion?
What is queue in c?
Is c still relevant?
What is a const pointer in c?
Explain the difference between malloc() and calloc() function?
What is ## preprocessor operator in c?
What is function prototype?
What is the difference between strcpy() and memcpy() function in c programming?
Can you subtract pointers from each other? Why would you?
What is the purpose of macro in C language?
how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?
What does the c preprocessor do?
What is the purpose of void pointer?
What is Dynamic memory allocation in C? Name the dynamic allocation functions.