The first one shouldn't be compiled, dependent on optimization..
The second shouldn't also, dependent on optimization..
Using volatile it will always be compiled..
C:
volatile __inline unsigned int returnMax(int a, int b)
{
if (a > b)
return a;
return b;
}
You need to get to grips with YOUR compiler.... Try writing a section of code... Use variables and functions that are/ aren't used variables that are initialized but unused... Compile with differing levels of optimization and you'll soon see what is compiled and what isn't..