S
sam
HI,
The code is as follows:-
#include <stdio.h>
1
2 void * work(void * ptr)
3 {
4 int i;
5 for (i = 0; i < 10; i++)
6 {
7 printf("%d", (int)ptr);
8 usleep(1000);
9 }
10 return 0;
11 }
Whats the meaning of this line:-
void *work(void *ptr)
The code is as follows:-
#include <stdio.h>
1
2 void * work(void * ptr)
3 {
4 int i;
5 for (i = 0; i < 10; i++)
6 {
7 printf("%d", (int)ptr);
8 usleep(1000);
9 }
10 return 0;
11 }
Whats the meaning of this line:-
void *work(void *ptr)