Function in C++ MCQs Exercise II

Ques 1 Function


What do you mean by inline function?

A It is System define function
B It is type of STL function
C It is type of function that call at compile time
D It is type of function that is expended at each call during execution

Ques 2 Function


What is the output of the following C++ Code?


#include <iostream>
using namespace std;
int sum(int a=1,int b=1,int c=1);
int main()
{
    cout<< sum(10,20,30);
}
int sum(int a, int b, int c){
    return a+b+c;
}

A 3
B 60
C 63
D Error