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
Explain what is the benefit of using #define to declare a constant?
What are the advantages of the functions?
What is function pointer c?
When is the “void” keyword used in a function?
Explain the array representation of a binary tree in C.
What is a wrapper function in c?
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
Why is c not oop?
What are the three constants used in c?
void main(int n) { if(n==0) return; main(--n); printf("%d ",n); getch(); } how it work and what will be its output...............it any one know ans plz reply
Why string is used in c?
What are actual arguments?
In which language linux is written?
Differentiate between declaring a variable and defining a variable?
What are the scope of static variables?