Home / MCQ Bank / Computer
Computer Control Structures Difficulty: Medium

What is the right choice, if the following loop is implemented? void main() { int num = 0; do{ --num; printf("%d", num); }while( ++num >= 0 ); }

Select the correct option to test your answer:

More Computer Questions

What will be the output of the following C code? #include <stdio.h> void main() { int x = 1, z = 3; int y = x << 3; printf(" %d\n", y); } What will be the output of the following C++ code? #include <iostream> using namespace std; int main() { int a = 9; int & aref = a; a++; cout << "The value of a is " << aref; return 0; } What is the result of the expression 5 * (1 + 2) - 3 in C? In Word, the default alignment for paragraphs is_________? Which of the following is not a type of inheritance?