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 is the difference between null pointer and wild pointer?
What is #include conio h?
If a five digit number is input through the keyboard, write a program to print a new number by adding one to each of its digits.For example if the number that is input is 12391 then the output should be displayed as 23402
Which operators cannot be overloaded a) Sizeof b) .* c) :: d) all of the above
How can a number be converted to a string?
What is the size of array float a(10)?
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
Explain high-order bytes.
Is return a keyword in c?
Explain what is the stack?
int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above
Explain the process of converting a Tree into a Binary Tree.
How can I call a function with an argument list built up at run time?
What are the main characteristics of c language describe the structure of ac program?
write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.