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...

If I want to initialize the array like.
int a[5] = {0};
then it gives me all element 0.
but if i give int a[5] = {5};
then 5 0 0 0 0 is ans.
what will I do for all element 5 5 5 5 5 in a single
statement???

Answer Posted / n

int a[5]={5,5,5,5,5};

Is This Answer Correct ?    27 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

3339


What does the && operator do in a program code?

1245


Explain what is the concatenation operator?

1180


find the sum of two matrices and WAP for it.

1156


How do you sort filenames in a directory?

1194


What is meant by type specifiers?

1143


What is volatile c?

1032


write a c program in such a way that if we enter the today date the output should be next day's date.

2205


what is the structure pointer?

2139


How do I send escape sequences to control a terminal or other device?

1088


What is memcpy() function?

1132


Are the variables argc and argv are local to main?

1328


What are terms in math?

1065


How can I sort more data than will fit in memory?

1122


What is the use of getchar functions?

1197