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

Answer Posted / rajesh

shivani is wrong bec. structure is not inherited.

Is This Answer Correct ?    0 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how we implement exception handling in c++?

574


What is increment operator in c++?

560


What is input operator in c++?

587


Explain the volatile and mutable keywords.

614


Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. Your program should work for squares of all side sizes between 1 and 20. --- │ │ │ │ │ │ ---

1643






How do I run a program in notepad ++?

600


What is the difference between strcpy() and strncpy()?

610


What does the ios::ate argument do?

661


Is python written in c or c++?

619


Suppose that data is an array of 1000 integers. Write a single function call that will sort the 100 elements data [222] through data [321].

957


Can you pass a vector to a function?

538


Explain the difference between c & c++?

582


What is a container class?

617


What is the difference between an enumeration and a set of pre-processor # defines?

828


What is a constant? Explain with an example.

556