What is the difference between Class and Structure?

Answer Posted / liyakath ulla r

the structurs are used in both c and c++.
but class is used only in c++ and othe opps languages

Is This Answer Correct ?    67 Yes 63 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()

990


How do you invoke a base member function from a derived class in which you’ve overridden that function?

574


What is the output of the following program? Why?

614


We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?

572


What operator is used to access a struct through a pointer a) >> b) -> c) *

582






Why do we use vector in c++?

588


What is c++ and its uses?

609


Is main a class in c++?

550


How would you implement a substr() function that extracts a sub string from a given string?

555


Explain the differences between list x; & list x();.

596


What is a rooted hierarchy?

671


What are friend functions in C++?

612


Does c++ vector allocate memory?

520


What is & in c++ function?

579


What is a NULL Macro? What is the difference between a NULL Pointer and a NULL Macro?

607