what is system function in c

The system function in C is used to execute a system command. It takes a string as an argument, which represents the command to be executed. The system function then runs the command specified in the argument, and returns an integer value representing the status of the command execution.