How many times will this loop execute? Explain your answer.


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ Interview Questions

Can we call a virtual function from a constructor?

1 Answers  


Identify the errors in the following program. #include <iostream> using namespace std; void main() { int i=5; while(i) { switch(i) { default: case 4: case 5: break; case 1: continue; case 2: case 3: break; } i-; } }

1 Answers  


Write a C++ program to print strings in reverse order.

0 Answers   Amdocs,


What is the difference between public, private, and protected inheritance?

0 Answers   Amazon,


Write a program to input an integer from the keyboard and display on the screen “WELL DONE” that many times.

1 Answers  






In C++ what is a vtable and how does it work?

0 Answers   Agilent,


What is the difference between virtual functions and pure virtual functions?

1 Answers  


What Is A Default Constructor in C++ ?

0 Answers   Amazon,


What is data abstraction? How is it implemented in C++?

0 Answers   Amdocs,


What are string library functions(syntax).

0 Answers   Accenture,


Write a program to read the values a, b and c and display x, where x=a/b–c. Test the program for the following values: (a) a = 250, b = 85, c = 25 (b) a = 300, b = 70, c = 70

1 Answers  


Write a C++ Program to Find Sum and Average of three numbers.

1 Answers  


Categories