user image

Naina Kashyap

Graphic Designing
Graphic Designing
2 years ago

What Is The Difference Between Exec And System?

user image

Muskan Anand

2 years ago

With system() you can invoke any command, whereas with exec(), you can only invoke an executable file. Shell scripts and batch files must be executed by the command shell. Basically they are entirely different used for different purposes. Moreover exec() replaces the calling process, and does not return.

Recent Doubts

Close [x]