What are the differences between a struct in C and in C++?

Answer Posted / nithin

what is the use of struct in c then? wat advantages does it
offer?

Is This Answer Correct ?    1 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a function to perform the substraction of two numbers. Eg: char N1="123", N2="478", N3=-355(N1-N2).

617


What is difference between array and vector in c++?

559


What is near, far and huge pointers? How many bytes are occupied by them?

659


Can member functions be private?

596


How many standards of c++ are there?

625






Explain operator overloading.

602


What is purpose of abstract class?

586


What are the advantage of using register variables?

639


Why is c++ still best?

554


Define upcasting.

592


What is class invariant in c++?

746


Why is that unsafe to deal locate the memory using free( ) if it has been allocated using new?

630


Which is the best c++ software?

609


What is searching?

654


How new/delete differs from malloc()/free?

615