Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdlib.h>
- #include <stdio.h>
- int main(){
- float f = 1.5;
- printf("%f --> %d --> %f\n", f, (int)f, (float)(int)f);
- int i = 1;
- printf("1 == %i\n", (int)(float)i);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement