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
How would you use the functions fseek(), freed(), fwrite() and ftell()?
What is a dynamic array in c?
What is file in c language?
What is data structure in c programming?
What are variables and it what way is it different from constants?
State the difference between x3 and x[3].
Explain what are the different file extensions involved when programming in c?
How can I convert a number to a string?
What is the use of pragma in embedded c?
What is difference between scanf and gets?
What do you mean by scope of a variable in c?
What is array of pointers to string?
What are header files? What are their uses?
What is the difference between declaring a variable and defining a variable?
What is nested structure with example?