asked on
inline GetValue(int cond1)
{
if (cond1 == true)
{
// -- code chunk 'abc'--
}
}
ASKER
C is a general-purpose, imperative computer programming language, supporting structured programming, lexical variable scope and recursion, while a static type system prevents many unintended operations. By design, C provides constructs that map efficiently to typical machine instructions, so it has found lasting use in applications that had formerly been coded in assembly language, including operating systems as well as various application software for computers ranging from supercomputers to embedded systems. It is distinct from C++ (which has its roots in C) and C#, and many later languages have borrowed directly or indirectly from C.
TRUSTED BY
Is --code chunk-- the only thing in the *if* statement? If so, the optimization may well be eliminating the test as it's do-nothing code.
Kent