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
Why c is a mother language?
we need to calculating INCOME TAX for the person. The INCOME TAX is as follows:- First $10000/- of income : 4% tax Next $10000/- of income : 8% tax Next $10000/- of income : 11.5% tax above $10, 00,00/- : 15% tax What is the Solution of this Question ?
Discuss the function of conditional operator, size of operator and comma operator with examples.
What are the types of operators in c?
write a program which the o/p should b in such a way that s triangle if I/p is 3,a Square/rectangle if I/P=4,a pentagon if I/P=5 and so on...forget about the I/P which is less than 3
What is a wrapper function in c?
What is the difference between declaring a variable and defining a variable?
What is a far pointer in c?
How can you restore a redirected standard stream?
Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.
cavium networks written test pattern ..
What is the purpose of 'register' keyword?
What is preprocessor with example?
How to throw some light on the b tree?
Write a program to check palindrome number in c programming?