Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

need some help on C++

Options
  • 04-09-2008 3:42pm
    #1
    Closed Accounts Posts: 12


    1) Is it possible to have a function call on the left hand side of the equality operator?
    a. No, because you can only have variables on the left side
    b. Yes, but only in case of functions that do not return anything
    c. Yes, but only in case of functions that return a pointer value
    d. Yes, but only in case of functions that return a reference value.

    I think the answer should be c or d , but not sure which one is correct


    2) which of the following statements are true for operator overloading in C++?
    a. The * operator can be overloaded to perform division
    b. The * operator can be overloaded to perform assignment
    c. ** can be overloaded to perform "to the power of"
    d. Operators can be overloaded only inside classes
    e. Operator can be overloaded globally

    I think the answer should be E

    I'm appreciate if someone can give me some help


Comments

  • Registered Users Posts: 7,468 ✭✭✭Evil Phil


    Do your own homework ya lazy fecker :rolleyes:


This discussion has been closed.
Advertisement