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


Please Help Members By Posting Answers For Below Questions

write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);

2110


Explain Function Pointer?

897


Why c is a mother language?

742


Iam a B.Tech graduate and completed my engineering in 2009, from 2005 to 2009 and after that i had done nothing.Now i want to do job and get into BPO field . Friends give me suggestions as what to say in interview... if they ask me that what would you had done ... these many years without doing job ??????? pls urgent

1635


What is %d called in c?

948


How to implement a packet in C

2615


Why is structure padding done in c?

888


Difference between pass by reference and pass by value?

869


What is a structure and why it is used?

855


Is null always defined as 0(zero)?

824


What is table lookup in c?

840


Under what circumstances does a name clash occur?

941


What is a null pointer in c?

840


What is a file descriptor in c?

811


Why do we need volatile in c?

943