nested function call faster or not ?
Posted
by KaluSingh Gabbar
on Stack Overflow
See other posts from Stack Overflow
or by KaluSingh Gabbar
Published on 2010-04-25T01:18:22Z
Indexed on
2010/04/25
1:23 UTC
Read the original article
Hit count: 330
I have this silly argument with a friend and need a authoritative word on it.
I have these two snippet and want to know which one is faster ? [A or B]
(assuming that compiler does not optimize anything)
[A]
if ( foo () );
[B]
int t = foo ();
if ( t )
© Stack Overflow or respective owner