2. The last argument of the thread function takes a void pointer as its argument so firstly keep point 1 in mind and secondly either you can declare a pointer or the better option might be to simply pass the variable by reference.
3. If you passed a variable by reference don't forget to dereference it. syntax * referenced_variable
5. Enjoy your programming, its never too late to learn :)
thankyou sir this is what most of us were looking for..
ReplyDelete