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
Give differences between - new and malloc() , delete and free() ?
How can I change the size of the dynamically allocated array?
How can you find the exact size of a data type in c?
Can we change the value of static variable in c?
Define C in your own Language.
What does s c mean on snapchat?
formula to convert 2500mmh2o into m3/hr
What is a list in c?
Explain the use of #pragma exit?
Explain what is the difference between functions abs() and fabs()?
How can you call a function, given its name as a string?
what is event driven software and what is procedural driven software?
a construct the"else" part of "if" statement contains anoth "if else" statement is called a) if-else b) else-if-else c) if-else-if-else d) chain if/if-else-if
When we use void main and int main?
Explain the use of 'auto' keyword