Which of the following is correct?
1.struct cannot have member function in C but it can in C++
2.struct cannot have member function in C++ but it can in C
3.struct cannot have member function in both C and C++
4.struct can have member function in both C and C++
Posted Date:-2021-02-21 05:09:41