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 -> in c?

1023


What are the 32 keywords in c?

1095


What is this pointer in c plus plus?

1101


What are the advantage of c language?

1060


Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.

2065


Explain what is #line used for?

1078


Why string is used in c?

1015


Explain a file operation in C with an example.

1127


What is the use of void pointer and null pointer in c language?

1130


How does placing some code lines between the comment symbol help in debugging the code?

1015


main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

1163


Explain what is meant by high-order and low-order bytes?

1054


Can we increase size of array in c?

976


#define MAX(x,y) (x) >(y)?(x):(y) main() { inti=10,j=5,k=0; k= MAX(i++,++j); printf("%d..%d..%d",i,j,k); }

1161


How do you generate random numbers in C?

1205