Functions
- Pick out the correct statement.
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
A friend function may or may not be a member of another class
- What is the syntax of friend function?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
In option a, the classB is the friend of classa and it can access all the private and protected members of classA.
- Which keyword is used to declare the friend function?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
friend
- Which is more effective while calling the functions?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
In the call by reference, it will just copy the address of the variable to access it, so it will reduce the memory in accessing it.
- How many can max number of arguments present in function in the c99 compiler?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
127