1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | #include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <assert.h>
int main(int argc, char* argv[]) {
printf("Hello World! (stdout)\n"); // printf(…) always writes to stdout
// stdout is a "stream" (object you can write to and/or read from)
// stdout usually displays on your screen. It is for normal output.
fprintf(stderr, "Hello World! Something is wrong. (stderr)\n");
// stderr also displays on your screen, but is for error messages and abnornal output.
return EXIT_SUCCESS;
}
/* vim: set tabstop=4 shiftwidth=4 fileencoding=utf-8 noexpandtab: */
|
© Copyright 2024 Alexander J. Quinn This content is protected and may not be shared, uploaded, or distributed.