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
State the difference between x3 and x[3].
Why main function is special give two reasons?
How can I remove the trailing spaces from a string?
What is the use of a semicolon (;) at the end of every program statement?
Add Two Numbers Without Using the Addition Operator
What is size of union in c?
Is int a keyword in c?
Is fortran still used in 2018?
How can I get the current date or time of day in a c program?
When we use void main and int main?
Difference between linking and loading?
What is the difference between %d and %i?
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
How can you allocate arrays or structures bigger than 64K?