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 |
Explain the extern storage classes in c++.
Is c++ a software?
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; }
Do you know what are static and dynamic type checking?
Explain how functions are classified in C++ ?
What are the extraction and insertion operators in c++? Explain with examples.
In a function declaration, what does extern mean?
What is size of a object of following class? class Foo { public: void foo(){} }
Can you Mention some Application of C/C++?
Why is c++ still best?
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.
Explain shallow copy?