← index
helloworld.c
Source: C2x.Examples/src/helloworld.c
#include <stdio.h>
#include <stdlib.h>

int main(int argc, char *argv[static argc + 1]) {
    puts("Hello, World!");
    for (int i = 0; i < argc; ++i) {
        printf("Argument (%d): %s\n", i, argv[i]);
    }
    return EXIT_SUCCESS;
}