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

Explain what is the benefit of using #define to declare a constant?

599


What are the advantages of the functions?

600


What is function pointer c?

579


When is the “void” keyword used in a function?

821


Explain the array representation of a binary tree in C.

716






What is a wrapper function in c?

571


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

627


Why is c not oop?

531


What are the three constants used in c?

534


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

2208


Why string is used in c?

569


What are actual arguments?

638


In which language linux is written?

591


Differentiate between declaring a variable and defining a variable?

596


What are the scope of static variables?

593