Q:

What is the output of following program?

0

What is the output of following program?


  1. x = 2 count = 0 x = 2.2 count = 0 x = 2.2 count = 0
  2. x = 2 count = 0 x = 2 count = 0 x = 2.2 count = 0
  3. x = 2 count = 0
    x = 2 count = 1
    x = 2.2 count = 0
  4. x = 2 count = 0 x = 2 count = 1 x = 2.2 count = 2

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

 (c).x = 2 count = 0
x = 2 count = 1
x = 2.2 count = 0

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

OBJECT ORIENTED PROGRAMMING OBJECTS AND CLASSES IN OOPS MCQ

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now
If template class is defined, is it necessary to u... >>
<< What if static members are declared inside templat...