structure that describe a hotel with name, address,rooms
and number of rooms

Answers were Sorted based on User's Feedback



structure that describe a hotel with name, address,rooms and number of rooms..

Answer / sourisengupta

struct Hotel
{
char name[30];
char address[50];
int rooms;
int roomCount;
};

Is This Answer Correct ?    2 Yes 0 No

structure that describe a hotel with name, address,rooms and number of rooms..

Answer / sumithra.a

struct hotel
{
Name,
Address,
Rooms,
RoomCount
};

Is This Answer Correct ?    4 Yes 4 No

Post New Answer

More C++ General Interview Questions

What is the difference between Pointer and a Reference? When you would use them?

4 Answers   Wipro,


How can we read/write Structures from/to data files?

0 Answers  


Write about the members that a derived class can add?

0 Answers  


Which is better c++ or java?

0 Answers  


What is helper in c++?

0 Answers  






What are multiple inheritances (virtual inheritance)?

0 Answers  


What does the linker do?

0 Answers  


How can we check whether the contents of two structure variables are same or not?

0 Answers  


What is null c++?

0 Answers  


What is meant by forward referencing and when should it be used?

0 Answers  


Can a function take variable length arguments, if yes, how?

0 Answers  


Define namespace in c++?

0 Answers  


Categories