In message queue if i use pointer for sending payload instead of character array then unpredictable output occurs . Sometimes segmentation fault or sometimes unwanted output occurs at the receiver side . When i use character array instead of pointer all works well .
Why is this happening????