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
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 []);
Explain Function Pointer?
Why c is a mother language?
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
What is %d called in c?
How to implement a packet in C
Why is structure padding done in c?
Difference between pass by reference and pass by value?
What is a structure and why it is used?
Is null always defined as 0(zero)?
What is table lookup in c?
Under what circumstances does a name clash occur?
What is a null pointer in c?
What is a file descriptor in c?
Why do we need volatile in c?