单选题

下面程序的输出是什么?

发布于 2022-03-03 22:34:45

下面程序的输出是什么?
#include<stdio.h>
#include<string.h>
#include <pthread.h>
 
void* print1(void* data){
    printf("1 ")
}
 
void* print2(void* data){
    printf("2 ")
}

void* print3(void* data){
    printf("3 ")
}

int main(void){
    pthread_t t,t1,t2
    
    pthread_create(&t,0,print1,NULL)
    pthread_create(&t1,0,print2,NULL)
    pthread_create(&t2,0,print3,NULL)
    
    pthread_join(t,NULL)
    pthread_join(t1,NULL)
    pthread_join(t2,NULL)
    printf("\n")
}

登录后免费查看答案
关注者
0
被浏览
18
知识点
面圈网VIP题库

面圈网VIP题库全新上线,海量真题题库资源。 90大类考试,超10万份考试真题开放下载啦

去下载看看