int main()
{
int i ,a[i];
i = 0;
a[i] = 10;
cout<< a[i] << endl;
return 0;
}
What will be output of this program?
Answers were Sorted based on User's Feedback
Why do we need runtime polymorphism in c++?
What is the default access level?
What is c++ good for?
How can you quickly find the number of elements stored in a a) static array b) dynamic array ?
What is the difference between Pointer and a Reference? When you would use them?
Which algorithm do you like the most? Why?
Write a function to find the nth item from the end of a linked list in a single pass.
Explain dangling pointer.
Do the names of parameters have to agree in the prototype, definition, and call to the function?
Can we define function inside main in c++?
Why do C++ compilers need name mangling?
Is swift better than c++?