int main()
{
int i ,a[i];
i = 0;
a[i] = 10;
cout<< a[i] << endl;
return 0;
}
What will be output of this program?
Answer Posted / ramesh kumar
in array we can must enter size integer...
not as variable type like i
thats why it gives an error
| Is This Answer Correct ? | 9 Yes | 2 No |
Post New Answer View All Answers
Which function cannot be overloaded c++?
On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?
Can you Mention some Application of C/C++?
What programming language should I learn first?
How do you traverse a btree in backward in-order?
Which one between if-else and switch is more efficient?
What is the use of 'using' declaration in c++?
When do we run a shell in the unix system? How will you tell which shell you are running?
What is data type in c++?
What is the basic difference between C and C++?
Which sort does c++ use?
What are static type checking?
What do c++ programmers do?
Is c the same as c++?
How does the copy constructor differ from the assignment operator (=)?