+ 9

why this code in c , outputs this

#include <stdio.h> int main() { printf("%d %o %x",72,72,72); return 0; } output: 72 110 48 can anyone explain me...

25th Jun 2019, 10:23 AM
Sujithra
2 Antworten
+ 12
%d means integer value, 72 in this case. %o is octal value, 72 in octal base is 110 %x is hexadecimal value, 72 in hexadecimal base is 48
25th Jun 2019, 10:28 AM
Javier Felipe Toribio
Javier Felipe Toribio - avatar