Sail E0 Webinar
Question


Which of the following statement is correct about the program given below?


#include
class PowerFinder
{
public:
void Power(int x = 1, int y = 1)
{
int P = 1, i = 1;
while(++i
Options:
A .  The program will print the output 12.
B .  The program will print the output 16.
C .  The program will print the output 32.
D .  The program will print the output 36.
E .  The program will execute infinite time.
Answer: Option C



Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers