Vidyalelo
C++ Programming · Q61

Introduction to C++

Programming · C++ Programming · question 61

Q61

Which of the following is correct?

A.
struct cannot have member function in C but it can in C++
Answer
B.
struct cannot have member function in C++ but it can in C
C.
struct cannot have member function in both C and C++
D.
struct can have member function in both C and C++

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board