Write code for initializing one dimentional and two
dimentional array in a C Program?
Answer Posted / raam_bangaloreallinter
1-D array:
int a[4]={ 10,20,30,40};
2-D array: # 2 columns and 2 rows
int a[2][2]= {
{100,200},
{300,400} };
Raam - ramumcato@yahoo.com
| Is This Answer Correct ? | 19 Yes | 1 No |
Post New Answer View All Answers
What is the -> in c?
What are the 32 keywords in c?
What is this pointer in c plus plus?
What are the advantage of c language?
Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.
Explain what is #line used for?
Why string is used in c?
Explain a file operation in C with an example.
What is the use of void pointer and null pointer in c language?
How does placing some code lines between the comment symbol help in debugging the code?
main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }
Explain what is meant by high-order and low-order bytes?
Can we increase size of array in c?
#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }
How do you generate random numbers in C?