#include <stdio.h>


int main(int argc, char *argv[]) {

    // Print the number of arguments and the arguments themselves

    printf("Number of arguments: %d\n", argc);

    for (int i = 0; i < argc; i++) {

        printf("Argument %d: %s\n", i, argv[i]);

    }


    return 0;

}

This program takes two arguments: argc, which is the number of command line arguments, and argv, which is an array of strings containing the arguments. It prints the number of arguments and the arguments themselves.

To run this program, you can pass some command line arguments when you execute it. For example:

./a.out arg1 arg2 arg3

Here is an example of the output of this program when run with the above command line arguments:

Number of arguments: 4
Argument 0: ./a.out
Argument 1: arg1
Argument 2: arg2
Argument 3: arg3