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
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
What does the && operator do in a program code?
Explain what is the concatenation operator?
find the sum of two matrices and WAP for it.
How do you sort filenames in a directory?
What is meant by type specifiers?
What is volatile c?
write a c program in such a way that if we enter the today date the output should be next day's date.
what is the structure pointer?
How do I send escape sequences to control a terminal or other device?
What is memcpy() function?
Are the variables argc and argv are local to main?
What are terms in math?
How can I sort more data than will fit in memory?
What is the use of getchar functions?