Code:
public static char f( char c ){
System.out.print( c++ );
return c--;
}
public static void main(String[] args)
{
if( f('j') == 'k' || f('f') == 'f'){
System.out.println( f('d') );
}
}
Can someone please explain to me why this prints "jde"?? Intuitively, I thought it would print "kged".
fso that it saysSystem.out.print(++c);and thenreturn --c;to see what happens!