I\'am new to C and would like to play with threads a bit. I would like to return some value from a thread using pthread_exit()
pthread_exit()
My code is as follows:
You are returning a reference to ret which is a variable on the stack.