+ 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...
2 Answers
+ 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