c execute shell command

#include <stdio.h>
#include <stdlib.h>

int main() {
    char command[] = "ls -l"; // Replace with your desired shell command
    printf("Executing command: %s\n", command);
    system(command);
    return 0;
}