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 / jahid

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

Is This Answer Correct ?    8 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is main a keyword in c?

1145


What is the process to generate random numbers in c programming language?

1190


What is 'bus error'?

1166


Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)

1048


What is const keyword in c?

1175


What are the scope of static variables?

1205


Write a program to print fibonacci series using recursion?

1074


How do I get a null pointer in my programs?

1123


Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?

1148


What is difference between structure and union in c programming?

1124


any restrictions have on the number of 'return' statements that may be present in a function. a) no restriction b) only 2 return statements c) only 1 return statements d) none of the above

1151


How can I get random integers in a certain range?

1083


difference between Low, Middle, High Level languages in c ?

2101


number of times a digit is present in a number

2047


What is %g in c?

1087