structure that describe a hotel with name, address,rooms
and number of rooms
Answers were Sorted based on User's Feedback
Answer / sourisengupta
struct Hotel
{
char name[30];
char address[50];
int rooms;
int roomCount;
};
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / sumithra.a
struct hotel
{
Name,
Address,
Rooms,
RoomCount
};
| Is This Answer Correct ? | 4 Yes | 4 No |
If there are two catch statements, one for base and one for derived, which should come first?
What is c++ flowchart?
Describe the role of the c++ in the tradeoff of safety vs. Usability?
Why do we learn c++?
char *ch = "abcde"; char c[4]; how to copy 'ch' to 'c'?
What is std :: flush?
What is an explicit constructor?
What are the uses of static class data?
What are friend classes? What are advantages of using friend classes?
Give the difference between the type casting and automatic type conversion. Also tell a suitable C++ code to illustrate both.
Explain binary search.
Explain class invariant.