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

Explain the extern storage classes in c++.

0 Answers  


Is c++ a software?

0 Answers  


Find out the bug in this code,because of that this code will not compile....... #include <iostream> #include <new> #include <cstring> using namespace std; class balance { double cur_bal; char name[80]; public: balance(double n, char *s) { cur_bal = n; strcpy(name, s); } ~balance() { cout << "Destructing "; cout << name << "\n"; } void set(double n, char *s) { cur_bal = n; strcpy(name, s); } void get_bal(double &n, char *s) { n = cur_bal; strcpy(s, name); } }; int main() { balance *p; char s[80]; double n; int i; try { p = new balance [3]; // allocate entire array } catch (bad_alloc xa) { cout << "Allocation Failure\n"; return 1; }

2 Answers   Impetus,


Do you know what are static and dynamic type checking?

0 Answers  


Explain how functions are classified in C++ ?

0 Answers  






What are the extraction and insertion operators in c++? Explain with examples.

0 Answers  


In a function declaration, what does extern mean?

0 Answers  


What is size of a object of following class? class Foo { public: void foo(){} }

2 Answers   CA,


Can you Mention some Application of C/C++?

0 Answers  


Why is c++ still best?

0 Answers  


1.Between 100 and 999 are some numbers that have the characteristics that if you cube the individual digits and sum together you will get the same number. 2. A program that can accept as input an integer and output the equivalent of that number in words.

3 Answers  


Explain shallow copy?

0 Answers  


Categories