Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is the meaning of c in c language?

1142


Explain how can I pad a string to a known length?

1181


What is a program flowchart?

1173


How many keywords (reserve words) are in c?

1125


If the size of int data type is two bytes, what is the range of signed int data type?

1011


shorting algorithmS

2247


What is switch in c?

1069


Where are some collections of useful code fragments and examples?

1146


Define Spanning-Tree Protocol (STP)

1113


5 Write an Algorithm to find the maximum and minimum items in a set of ā€˜n’ element.

2091


What is clrscr ()?

1099


Why c is called a middle level language?

1088


Explain what is a stream?

1072


What is struct node in c?

1058


Why doesnt long int work?

1023