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 / kalpana.y

array:array is a collection of elements
one dimensional array:
code:
datatype arraysize[];
eg:
int a[5];
two-dimensional array:
code:
datatype array[rowsize][columnsize];
eg:
int a[5][5];

Is This Answer Correct ?    14 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the advantages of c language?

1052


Can you write a programmer for FACTORIAL using recursion?

992


What is queue in c?

1046


Is c still relevant?

1046


What is a const pointer in c?

1085


Explain the difference between malloc() and calloc() function?

995


What is ## preprocessor operator in c?

1033


What is function prototype?

1072


What is the difference between strcpy() and memcpy() function in c programming?

1036


Can you subtract pointers from each other? Why would you?

921


What is the purpose of macro in C language?

1073


how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?

1905


What does the c preprocessor do?

1065


What is the purpose of void pointer?

994


What is Dynamic memory allocation in C? Name the dynamic allocation functions.

1341