double x = -3.5, y = 3.5;
printf( "%.0f : %.0f", ceil( x ), ceil( y ) );
printf( "%.0f : %.0f", floor( x ), floor( y ) );
What will the above code print when it is executed?
ceil =>rounds up 3.2=4 floor =>rounds down 3.2=3
Reveal answer
Fill a bubble to check yourself