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 / blacky
Compiler will Core Dump
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
write a porgram in c++ that reads an integer and print the biggest digit in the number
Can I run c program in turbo c++?
Why is "using namespace std;" considered bad practice?
What is the difference between passing by reference and passing a reference?
What is the main purpose of overloading operators?
What is the operator in c++?
Why can’t you call invariants() as the first line of your constructor?
What is the difference between method overloading and method overriding in c++?
What is c++ course?
Write a program to find the Fibonacci series recursively.
What is general format for a prototype?
How does the copy constructor differ from the assignment operator (=)?
Is recursion allowed in inline functions?
Why isn't sizeof for a struct equal to the sum of sizeof of each member?
Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?