数组转指针
pthread_t threads[maxThread];
threadArry = (int*)threads;
指针使用数组中的值
for (int i = 0; i < maxThread; i++) {
pthread_exit(&(threadArry[i]));
}
数组转指针
pthread_t threads[maxThread];
threadArry = (int*)threads;
指针使用数组中的值
for (int i = 0; i < maxThread; i++) {
pthread_exit(&(threadArry[i]));
}
本文标题:指针 数组 互相转换
本文链接:https://www.haomeiwen.com/subject/adntsqtx.html
网友评论