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

Give differences between - new and malloc() , delete and free() ?

1071


How can I change the size of the dynamically allocated array?

1123


How can you find the exact size of a data type in c?

984


Can we change the value of static variable in c?

991


Define C in your own Language.

1052


What does s c mean on snapchat?

1070


formula to convert 2500mmh2o into m3/hr

959


What is a list in c?

1003


Explain the use of #pragma exit?

1144


Explain what is the difference between functions abs() and fabs()?

1131


How can you call a function, given its name as a string?

1119


what is event driven software and what is procedural driven software?

2525


a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if

1116


When we use void main and int main?

1043


Explain the use of 'auto' keyword

1099