What is the difference between Class and Structure?

Answer Posted / rohit patil

Syntax of class
class class_name
{
variable_declaration
function_declaration
};

syntax of structure
struct struc_name
{
variable declaration
};

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Distinguish between new and malloc and delete and free().

569


What are vtable and vptr?

609


Can you sort a set c++?

520


What is binary object model?

592


What are the benefits of c++?

562






What are the advantages of prototyping?

556


What is #include sstream?

611


Explain how to initialize a const member data.

592


Differentiate between a constructor and a destructor in c++.

558


how to connect with oracle 9i with server in socket program in c/c++

1844


Is main a class in c++?

552


What is c++ and its features?

566


What is c++ map?

557


When is the copy constructor called?

621


What is object file? How can you access object file?

591