Functions


  1. Pick out the correct statement.











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    A friend function may or may not be a member of another class


  1. What is the syntax of friend function?











  1. 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.



  1. Which keyword is used to declare the friend function?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    friend


  1. Which is more effective while calling the functions?











  1. 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.



  1. How many can max number of arguments present in function in the c99 compiler?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    127