Question: Question 2 ( 3 points ) . A program s main function is as follows: int main ( int argc, char * argv [ ]

Question 2(3 points). A programs main function is as follows:
int main(int argc, char *argv[]){
char *str = argv[1];
while (1)
printf("%s", str);
return 0;
}
Two processes, both running instances of this program, are currently running invoked by
wish> main a && main b
For each of the following output, tell if it is possible:
Output (... means not ending yet) A. Possible, B. Not Possible
abababab...
aaaaaaaa...
bbbbaaaa

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!