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
How do you define a string?
What is volatile, register definition in C
What is %d used for?
How can I do peek and poke in c?
application areas a 'c' a) operating system b) graphics, interpreter, assembler c) program evalution, communication softwares d) all the above
What is the return type of sizeof?
code for find determinent of amatrix
What is the behavioral difference when include header file in double quotes (“”) and angular braces (<>)?
What is the hardest programming language?
#include main() { int *p, *c, i; i = 5; p = (int*) (malloc(sizeof(i))); printf(" %d",*p); *p = 10; printf(" %d %d",i,*p); c = (int*) calloc(2); printf(" %d ",*c); }
Why is c platform dependent?
what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;
What is a buffer in c?
Can include files be nested?
Are there constructors in c?