Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Exam question

Status
Not open for further replies.

clyde11

Programmer
Joined
Feb 6, 2006
Messages
25
Location
GB
Hi falks,
i got this question in a test, i'm almost positive
that all of the answers are incorrect:

in C++, the "inline" mechanism:

1. enable better run time prformance, while still
keep structuralism
2. is actually using the old C preprocessor
3. does not enable type checking while regular
calling to functiuons do
4. force the compiler to insert the function into
the code while helping improve running time.

i'm sure that 3 and 4 are incorrect, (inline is a recommendation to the compiler and of course it enable type checking)
i did not read anywhere that the preprocessor is involved in the inline mechanism process..



Regards,
clyde.
 
So, are you asking whether 1. is true or false?


--
 
yes....but also if 2 is a possible answer...

Thanx
 
I would also say that all the answers are incorrect.
The inline keyword can increase performance of some small functions, but can decrease performance on larger functions.
The maintaining structuralism part sounds right though.

I guess you just have to choose the answer that sounds the least wrong, just like I vote for the Prime Minister that would cause the least damage to Canada. ;)
 
Status
Not open for further replies.

Similar threads

Replies
0
Views
289
  • Locked
  • Question Question
Replies
2
Views
396
Replies
2
Views
360
Replies
1
Views
293
  • Locked
  • Question Question
Replies
3
Views
354

Part and Inventory Search

Sponsor

Back
Top