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
What is meant by entry controlled loop? What all C++ loops are exit controlled?
what is the use of void main() in C++ language?
What is auto type c++?
Can you pass an array to a function in c++?
what you know about c++?
Discussion on error handling of C++ .
Explain the static storage classes in c++.
Is c++ used anymore?
Can we distribute function templates and class templates in object libraries?
What is difference between class and function?
What are the defining traits of an object-oriented language?
What are containers in c++?
What are the advantages of early binding?
What is a friend function in c++?
You want to link a c++ program to c functions. How would you do it?