Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main(void)
- {
- printf("Hello Worldn");
- return 0;
- }
- #include <stdio.h>
- int main(void)
- {
- puts("Hello World!");
- }
- #include <stdio.h>
- #ifndef HELLO_STRING
- #define HELLO_STRING "Hello, world!"
- #endif
- int main(int argc, char *argv[], char *envp[])
- {
- puts(HELLO_STRING);
- return 0;
- }
- #include <stdio.h>
- int main(int argc, char** argv)
- {
- printf("Hello Worldn");
- return 0;
- }
- #include <stdio.h>
- #include <stdlib.h>
- #include <errno.h>
- extern int errno;
- extern FILE *stdout;
- int main(int argc, char** argv)
- {
- errno = 0;
- int err = printf("Hello Worldn");
- if (err < 0) {
- return EXIT_FAILURE;
- }
- err = fflush(stdout);
- if (err < 0 || errno != 0) {
- return EXIT_FAILURE;
- } else {
- return EXIT_SUCCESS;
- }
- }
- #error Hello World
- $ cat hello.c
- #include <stdio.h>
- int main(void)
- {
- printf("Hello world!n");
- }
- $ c99 hello.c
- $ ./a.out
- Hello world!
- $
- #include <stdio.h>
- main()
- {
- printf("hello, worldn");
- }
- #include <stdlib.h>
- int main()
- {
- system("echo Hello World!");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement