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 many parameters should a function have?
#include
Why is c called a mid-level programming language?
What is string concatenation in c?
Explain how do you view the path?
Write a program to check whether a number is prime or not using c?
Where are c variables stored in memory?
largest Of three Number using without if condition?
What do you mean by a local block?
What is static memory allocation?
Can you pass an entire structure to functions?
In which header file is the null macro defined?
What are static variables in c?
What is a structural principle?
Explain how can I make sure that my program is the only one accessing a file?