#include <iostream>
using namespace std;
struct wow {
int x;
};
int main() {
wow a;
wow *b;
a.x = 22;
b = &a;
a.x = 23;
cout << b->x;
return 0;
}
Answer Posted / tiger
23
| Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What is difference between oop and pop?
What is constructor overloading in oop?
What is encapsulation oop?
What do you mean by variable?
What does sksksk mean in text slang?
What are functions in oop?
How oops is better than procedural?
What is oops?what is its use in software engineering?
What is oops and its features?
Why do we use class?
What is polymorphism give a real life example?
Why is polymorphism important in oop?
• What are the desirable attributes for memory managment?
Advantage and disadvantage of routing in telecom sector
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.