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
Under what circumstances does a name clash occur?
Why is structure padding done in c?
Explain how can you restore a redirected standard stream?
What is zero based addressing?
Explain how can a program be made to print the name of a source file where an error occurs?
Why is c so popular?
How pointer is different from array?
What is the use of getchar functions?
What are header files in c programming?
Are pointers integer?
Write a program to check palindrome number in c programming?
How pointers are declared?
What is the size of structure in c?
What is the difference between text and binary i/o?
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions