Question: 9) Function hello is defined as follows: inline void hello() { cout < < hello < < endl; } What happens to calls to hello
9) Function hello is defined as follows: inline void hello() { cout << "hello" << endl; }
What happens to calls to hello after compilation?
Why is this an optimization?
Why is hello a good candidate for inlining?
-
Declare a pointer to a float, and assign to it the address of an existing float f.
-
Write a function increment() that takes a pointer to an int and in- crements it by one.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
