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 the role of static keyword for a class member variable?
Are iterators pointers?
What is different in C++, compare with unix?
How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?
Why null pointer is used?
Can we define a constructor as virtual in c++?
Is vector a class in c++?
What are the methods of exporting a function from a dll?
Is arr and &arr are same expression for an array?
Why was c++ created?
What is set in c++?
Is recursion allowed in inline functions?
Difference between overloaded functions and overridden functions
Can we define function inside main in c++?
What is the prototype of printf function?