structure that describe a hotel with name, address,rooms
and number of rooms
Answer Posted / sourisengupta
struct Hotel
{
char name[30];
char address[50];
int rooms;
int roomCount;
};
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
We all know that a const variable needs to be initialized at the time of declaration. Then how come the program given below runs properly even when we have not initialized p?
Why do we use vector in c++?
What is DlgProc?
What is std namespace in c++?
what does the following statement mean? int (*a)[4]
Is map ordered c++?
What is & in c++ function?
Explain what you mean by a pointer.
What is iomanip c++?
How come you find out if a linked-list is a cycle or not?
What is operators in c++?
What happens when the extern "c" char func (char*,waste) executes?
what are the types of Member Functions?
Is it possible to use a new for the reallocation of pointers ?
What is the use of pointer in c++ with example?