Multiple choice technology programming languages

Which of the following statements are true?a. By default,all members of structure are private.b.new and delete operator can be overlaodedc.friend fucntion can overload [],(),= operators.

  1. a only

  2. a and b

  3. b only

  4. none of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Statement (a) is false - struct members are public by default in C++ (class members are private by default). Statement (b) is true - new and delete operators can be overloaded. Statement (c) is technically incorrect because the subscript operator [] and assignment operator = must be non-static member functions, not friend functions.