Vidyalelo
Computer Science · Q428

Linux

Engineering and GATE · Computer Science · question 428

Q428

What is the output of this progarm? #include #include int main() execl("/bin/ls","ls",NULL); return 0;

A.
the program will give an compilation error
B.
the program will give segmentation fault
C.
the program will execute just like "ls" command
Answer
D.
none of the mentioned

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board