Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
fun with signed casting
//gcc 5.4.0 #include <stdio.h> #include <stdint.h> int main(void) { int8_t i8 = -5; int64_t i64 = (int64_t)i8; if(i64 < 0){ printf("negative\n"); }else{ printf("positive\n"); } return 0; }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Random test
Project 5 v.06
1
C)_Assign_q4
A_141201_MatrizTodosDistintos
Bit
gcc compiler bug.. weird.
PointerFunct
18BCE2182 ASSESS_1 Q1-8
FILE Access 2
Please log in to post a comment.