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 |
Is c# written in c++?
What is the use of endl in c++ give an example?
Which bit wise operator is suitable for checking whether a particular bit is on or off?
What is a rooted hierarchy?
Can union be self referenced?
How much do c++ programmers make?
Who was the creator of c++?
What is std namespace in c++?
1. What does the following do: void afunction(int *x) { x=new int; *x=12; } int main() { int v=10; afunction(&v); cout<<v; } a) Outputs 12 b) Outputs 10 c) Outputs the address of v
Which of the following is not a valid declaration for main() a) int main() b) int main(int argc, char *argv[]) c) They both work
Why do we need pointers?
Why for local variables the memory required to hold the variable is allocated from the program stack and for new its allocated from the heap?