What is the output of below program?
int main(){ int a = 10;
cout<<a--;
return 0;
}
a) 10 c)11
b) 9 d)Not Defined
plz tell
Answers
Answered by
8
The output of below program
int main()
{
int a = 10;
cout<<a--;
return 0;
}
is option 'a' and the answer is '10'.
Answered by
1
The given program is
int main()
{
int a = 10;
cout<<a-- ;
return 0;
}
the program is written in C++ programming language
From the instruction the output put of the program is 10.
Hence option 'a' is correct.
Similar questions