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 meaning of c in c language?
Explain how can I pad a string to a known length?
What is a program flowchart?
How many keywords (reserve words) are in c?
If the size of int data type is two bytes, what is the range of signed int data type?
shorting algorithmS
What is switch in c?
Where are some collections of useful code fragments and examples?
Define Spanning-Tree Protocol (STP)
5 Write an Algorithm to find the maximum and minimum items in a set of ānā element.
What is clrscr ()?
Why c is called a middle level language?
Explain what is a stream?
What is struct node in c?
Why doesnt long int work?