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 difference between Pointer and a Reference? When you would use them?
How can we read/write Structures from/to data files?
Write about the members that a derived class can add?
Which is better c++ or java?
What is helper in c++?
What are multiple inheritances (virtual inheritance)?
What does the linker do?
How can we check whether the contents of two structure variables are same or not?
What is null c++?
What is meant by forward referencing and when should it be used?
Can a function take variable length arguments, if yes, how?
Define namespace in c++?