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
Related Questions on Introduction to C plus plus
What does the 'cin' object in C++ represent?
A. File output stream
B. File input stream
C. Standard output stream
D. Standard input stream

Join The Discussion