Home / MCQ Bank / Computer Science Engineering
Computer Science Engineering Linux Difficulty: Medium

What is the output of this program? #include<stdio.h> #include<pthread.h> int a; void *fun_t(void *arg); void *fun_t(void *arg) { a = 20; pthread_exit("Bye"); } int main() { pthread_t pt; void *res_t; a = 10; if(pthread_create(&pt,NULL,fun_t,NULL) != 0) perror("pthread_create"); if(pthread_join(pt,&res_t) != 0) perror("pthread_join"); printf("%d\n",a); return 0; }

Select the correct option to test your answer:

More Computer Science Engineering Questions

For automatic indentation, . . . . . . . . is used with : set command. The work associated with software engineering can be categorized into three generic phases,regardless of application area, project size, or complexity namely the . . . . . . . . phase which focuses on what, the . . . . . . . . phase which focuses on how and the . . . . . . . . phase which focuses on change. i. support ii. development iii. definition Storage classes available with Amazon s3 are - Which of the following life cycle model can be chosen if the development team has less experience on similar projects? Which of the following is not a part of a Data Flow Diagram?