logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • What do you mean by friend function in C++ ?


  • Correct Answer
  • Friends can be either functions or other classes The class grants friends unlimited access privileges * The declaration of the function should be preceded by the keyword 'friend' * The function definition will not use the keyword or the scope operator '::' Thus, a friend function is an ordinary function or a member of another class 

  • Tags: Analyst, Database Administrator, IT Trainer

    Technology problems


    Search Results


    • 1. What is the default return type of a function ?

    • Options
    • A. int
    • B. void
    • C. float
    • D. char
    • Discuss
    • 2. Which is more effective while calling the functions?

    • Options
    • A. call by value
    • B. call by reference
    • C. call by pointer
    • D. none
    • Discuss
    • 3. What is the correct JavaScript syntax to write ?Hello World??

    • Options
    • A. System.out.println(
    • B. println (
    • C. document.write(
    • D. response.write(
    • Discuss
    • 4. Javascript is interpreted by

    • Options
    • A. Server
    • B. Object
    • C. Client
    • D. None of the above
    • Discuss
    • 5. Write an SQL Query find number of employees according to gender whose DOB is between 01/01/1960 to 31/12/1975.
    • Discuss
    • 6. Which of the following is not the member of class?

    • Options
    • A. Virtual function
    • B. Static function
    • C. Friend function
    • D. Const function
    • Discuss
    • 7. Should a main() method be compulsorily declared in all java classes?
    • Discuss
    • 8. What is the importance of finally block in exception handling ?
    • Discuss
    • 9. How can you make sure the web application is fit for release ?
    • Discuss
    • 10. What is the difference between Tags and HTML Elements ?
    • Discuss


    Comments

    There are no comments.

Enter a new Comment