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


Please Help Members By Posting Answers For Below Questions

How can you return multiple values from a function?

620


What is stack in c?

597


Explain the use of 'auto' keyword in c programming?

666


What is a structure member in c?

534


WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER

1452






How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?

567


If I have a char * variable pointing to the name of a function ..

637


Write a program to know whether the input number is an armstrong number.

660


Tell me what is the purpose of 'register' keyword in c language?

605


I have a varargs function which accepts a float parameter?

564


What is the difference between a free-standing and a hosted environment?

632


What is character set?

675


Can we replace the struct function in tree syntax with a union?

765


Explain what is output redirection?

655


Explain what is a const pointer?

630