Computer Science, asked by rinkitakurrawat, 1 month ago

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 yassersayeed
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 anjumanyasmin
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