0

How it execute 34

#include <stdio.h> int main() {int i; i= 0x10 + 010+10; printf ("%d",i); return 0; }

26th Jul 2021, 1:57 PM
Ankur Hazarika
2 odpowiedzi
+ 6
😂😂 Wow fun equation 0x10 is equal to 16 in hexidecimals So we have: i = 16 010 is equal to 8 in octal So we have: i = 16 + 8 (=24) And 10 is just equal to 10 So: i = 16 + 8 + 10 = 34 😊
26th Jul 2021, 2:07 PM
Brain & Bones
Brain & Bones - avatar
+ 3
0x10 (hexadecimal) = 16 (decimal) 010 (octal) = 8 (decimal) 16 + 8 + 10 results in 34 ...
26th Jul 2021, 2:08 PM
Ipang