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
What does c value mean?
The postoder traversal is 7,14,3,55,22,5,17 Then ur Inorder traversal is??? please help me on this
What is union and structure in c?
Does c have class?
Is fortran still used today?
while initialization of array why we use a[][2] why not a[2][]...?
What is the use of typedef in c?
Explain how can I convert a string to a number?
pierrot's divisor program using c or c++ code
What is class and object in c?
What is a null pointer assignment error? What are bus errors, memory faults, and core dumps?
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.
What is the use of pragma in embedded c?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
What is the use of gets and puts?