Which of the following is correct?
A. struct cannot have member function in C but it can in C++
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

Join The Discussion