Select the correct option to test your answer:
Computer
Functions And Procedures In C Plus Plus
Difficulty: Medium
What will be the output of the following C++ code? #include <iostream> using namespace std; void func(int a, bool flag = true) { if (flag == true ) { cout << "Flag is true. a = " << a; } else { cout << "Flag is false. a = " << a; } } int main() { func(200, false); return 0; }
More Computer Questions
Which of the following languages syntax matches with the Ruby's syntax?
How many parameters are required for sort_heap function?
What is the main purpose of the 'volatile' storage class in C?
What will be the output of the following C code? #include <stdio.h> int main() { int i = 0; for (foo(); i == 1; i = 2) printf("In for loop\n"); printf("After loop\n"); } int foo() { return 1; }
Which of the following is a correct order of precedence in formula calculation?