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 / mohammed afroz
There are compile time error in this program. Because array
can declare with a constant value.
Is This Answer Correct ? | 7 Yes | 2 No |
Post New Answer View All Answers
Why is "using namespace std;" considered bad practice?
Explain what happens when a pointer is deleted twice?
write a programme to get a character and thier ASCII value
Which field is used in c++?
What is the arrow operator in c++?
How do you find out if a linked-list has an end?
What is the difference between an external iterator and an internal iterator?
why is iostream::eof inside a loop condition considered wrong?
Why struct is used in c++?
What is the difference between cin.read() and cin.getline()?
Why ctype h is used in c++?
What is the need of a destructor?
What do you mean by vtable and vptr in c++?
Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?
What is setf in c++?