Posts by Francisco Silva • 26 points
1 post
-
1
votes1
answer40
viewsA: How to correctly receive an argument by creating a thread
long init = (long)*((int*)t); converts (void *)t to (int *)t, an integer pointer. you access the value to which the integer pointer points with *(int *)t. and convert the integer to long with one…