Created
January 20, 2012 11:46
-
-
Save kenjiskywalker/1646997 to your computer and use it in GitHub Desktop.
format.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main() { | |
char string[10]; | |
int NUM1 = -10; | |
unsigned int NUM2 = 100; | |
strcpy(string, "hogeee"); | |
// anything format ext | |
printf("[NUM1] 10進数:%d, 16進数:%x, 符号なし10進数:%u\n", NUM1, NUM1, NUM1); | |
printf("[NUM2] 10進数:%d, 16進数:%x, 符号なし10進数:%u\n", NUM2, NUM2, NUM2); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment