#include <stdio.h> #include <stdlib.h> #include <string.h> int main(int argc, char* argv[]) { char str[10]; int v = 0; gets(str); printf("You typed: %s\n", str); printf("v: %d | %x\n", v, v); return 0; }
Learn hexadecimal, decimal and binary system conversions in under 30 minutes with this course!