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 / dinesh kumar

static int [5]={2,3,4,5,6};
for one dimensional array
static int[3][3]={1,2,3,4,5,6};
for two dimensional array it consider as rows and columns

Is This Answer Correct ?    7 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the function of this pointer?

1451


What are # preprocessor operator in c?

1167


What is the difference between #include

and #include “header file”?

1080


Differentiate between a for loop and a while loop? What are it uses?

1231


void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }

1783


How can I recover the file name given an open stream?

1079


What are the different types of objects used in c?

1079


What is null pointer constant?

1269


Can we assign string to char pointer?

1172


A variable that is defined in a specified portion of a program but can be used throughout the program a) global variable b) local variable c) character d) none

1304


Explain can you assign a different address to an array tag?

1117


Why do we use return in c?

1044


What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.

4332


What would the following code segment printint k = 8;docout << "k = " << k << " ";while k++ < 5; a) 13 b) 5 c) 8 d) pointers

1303


Explain what is dynamic data structure?

1216