#include <iostream>
using namespace std;
struct wow {
int x;
};
int main() {
wow a;
a.x = 22;
int c = a.x;
int *b = new int;
cout << c;
return 0;
}
option:
No output
0
22
-(11)
Will not compile
Answer Posted / tiger
22
| Is This Answer Correct ? | 11 Yes | 4 No |
Post New Answer View All Answers
write a C++ program for booking using constructor and destructor.
Can private class be inherited?
What is encapsulation process?
Why multiple inheritance is not possible?
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
What is multilevel inheritance explain with example?
Plese get me a perfect C++ program for railway/airway reservation with all details.
what is difference between class template and template class?
What is destructor in oop?
What is interface in oop?
What is an interface in oop?
What is inheritance and how many types of inheritance?
What is the real time example of inheritance?
Why is oop better than procedural?
How to use CMutex, CSemaphore in VC++ MFC