What would be the output of the given program? #include <iostream> using…

NVS TGT/PGT 2019

What would be the output of the given program? #include <iostream> using namespace std; void fun1(int x) { cout << x << endl; } int main() { //function calling fun1(10,20); return 0; }

  1. A.

    10

  2. B.

    Compile time error

  3. C.

    10, 20

  4. D.

    Run time error

Attempted by 404 students.

Sign up free to check your answer

Sign up free

Explore the full course: Bpsc

Loading lesson…