Home

What is the correct answer?

4

If a friend function is declared inside a class it can access all data members of the class.

A. True

B. False

Correct Answer :

A. True


Related Questions

It is possible to allow non member function access to private members… The signature of a function is The ?: can be used to replace A destructor can have a return type. The template function declaration specifies A normal C++ operator that acts in a special way on newly defined data… When one object initializes another object the following function is invoked _____________ operator must have one class object The break statement causes an exit When you overload an arithmetic assignment operator, the result In a for loop with a multi-statement loop body, semicolons should appear… What is the value of Friday in the following - enum days { Monday, Tuesday,… Which of the following relationship is known as inheritancerelationship? "[]" Operator is a unary operator. What is the output of the following program segment - for(i = 1, j = 0;… The member of a structure can be accessed through a pointer by A base class is inherited by Friend function have access to the A direct access file is: Which of the following can legitimately be passed to a function? Constructor returns void type value. When accessing a structure member, the identifier to the left of the dot… In a class, only the member function can access data, which is not accessible… The following syntax is valid. void inline gram_ panchayat :: show_gram_… A variable defined within a block is visible The library function exit() causes an exit from The member of a structure can be directly accessed by A function that is called automatically when an object is destroyed is… The exception is processed using A pure virtual function is a virtual function that has