What are the differences between a struct in C and in C++?
Answer Posted / anoop chaurasiya
c structure does not support the concept of data hiding but
in approach of c++ class support the concept of data hiding.
Is This Answer Correct ? | 17 Yes | 5 No |
Post New Answer View All Answers
What is pair in c++?
What is new in c++?
Where the memory to the static variables is allocated?
Is c++ the most powerful language?
What are the advantages of using a pointer? Define the operators that can be used with a pointer.
What is meant by the term name mangling in c++?
How a new operator differs from the operator new?
Refer to a name of class or function that is defined within a namespace?
Write a program which is required to process the time of a clock in hours and minutes, entered from the keyboard. With this program, there are two requirements for any data entered by a user: 1. The data must be of the correct type (in this case, two ints). 2. The data must be in the correct range: this means that, for the minutes, negative numbers and any number above 59 must be rejected; for the hours, negative numbers and any number above 23 must be rejected. Output error message for invalid data input. Output the time one and a half hour after the time input. i.e. Hour: 22 Min: 32 One and a half hour after 22:32 is 00:02
What is the function of I/O library in C++ ?
Is c++ fully object oriented?
What are the advantages of prototyping?
Which software is used to run c++ program?
Can we delete this pointer in c++?
Should the member functions which are made public in the base class be hidden?