What is the difference between Class and Structure?

Answer Posted / pratiksha desarda

while creating variables of structure,it is compulsary to
write 'struct' keyword. and for creating object of class,
keyword 'class' is not necessary to write.

Is This Answer Correct ?    2 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between the parameter to a template and the parameter to a function?

644


What is the size of a vector?

586


What is a local variable?

582


What is the best c++ compiler for windows 10?

584


What is the difference between the functions memmove() and memcpy()?

642






what is c++

1808


What is pointer to member?

603


What is class syntax c++?

600


Describe private, protected and public?

605


What are the different types of comments allowed in c++?

581


Of the numbers 12 23 9 28 which would be at the top of a properly implemented maxheap a) 28 b) 9 c) Any of them could be

936


What is c++ good for?

591


What should main() return in c and c++?

531


What is an iterator?

692


Which is not a valid keyword a) public b) protected c) guarded

747