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

Write a program to check armstrong number in c?

640


What is bubble sort technique in c?

594


What is the difference between exit() and _exit() function?

610


How can I run c program?

692


can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......

1415






What is a const pointer?

640


What is the difference between array_name and &array_name?

783


Can a pointer be static?

629


What are dangling pointers in c?

650


Why we use break in c?

556


What is the difference between union and structure in c?

581


What is integer constants?

626


What is the ANSI C Standard?

782


What is far pointer in c?

815


What does dm mean sexually?

817