Skip to content
Snippets Groups Projects
Commit edfcf6b2 authored by 이장원's avatar 이장원
Browse files

My printf HW

parent 0ed0b09b
Branches
No related tags found
No related merge requests found
...@@ -8,6 +8,6 @@ int main() ...@@ -8,6 +8,6 @@ int main()
fprintf(stderr, "Error: It is positive\n"); fprintf(stderr, "Error: It is positive\n");
else else
fprintf(stderr, "Error: It is negative\n"); fprintf(stderr, "Error: It is negative\n");
fprintf(stdout, "Hello, World %-10d\n", a); fprintf(stdout, "Hello, World %-d\n", a);
return 0; return 0;
} }
This is negative Hello, World -200
Error: It is negative
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment