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
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?
praagnovation
Explain what is the benefit of using an enum rather than a #define constant?
What are the 5 types of organizational structures?
What is binary tree in c?
What is the use of typedef in structure in c?
What is a protocol in c?
Are the expressions * ptr ++ and ++ * ptr same?
What is a buffer in c?
What does c value mean?
Explain the properties of union. What is the size of a union variable
Explain why c is faster than c++?
Explain about the constants which help in debugging?
What is memcpy() function?
How can I find out how much free space is available on disk?