ExamVeda
Login
Home
This question belongs to Computer Science Linux
Linux
?

How many time "Example" will print in this program?
#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
 
int main()
{       
    if( execl("/bin/ls","ls",NULL) == -1){         
        perror("execl");
        exit(1);
    }
    printf("Example\n");
    return 0;
}

Answer & Solution
Correct Answer: Option A
Let's discuss the solution. Join the discussion
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.