Which of the following is correct?

Question:
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


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!