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 |
What is the use of object in c++?
What is the use of ::(scope resolution operator)?
What is the best c++ ide?
What is format for defining a structure?
Explain pass by value and pass by reference.
What do you mean by pure virtual functions in C++? Give an example?
What is :: operator in c++?
How to create a pure virtual function?
Explain "passing by value", "passing by pointer" and "passing by reference" ?
Describe protected access specifiers?
Are php strings immutable?
Can you explicitly call a destructor on a local variable?