Jump to content

Execute a system command: Difference between revisions

Line 40:
 
=={{header|C}}==
{{worksISO C & with|POSIX|.1-2001}}:
 
<lang c> #include <stdlib.h>
 
int main()
{
system("ls");
return 0;
}</lang>
 
=={{header|C++}}==
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.