Pre increment operator and dereference operator resulting in segmentation fault, can't seem to understand why

前端 未结 0 618
失恋的感觉
失恋的感觉 2021-01-24 09:43

Found the following piece of code given in a test which asked to figure out the output.

#include 

int gate(char *P)
{
    char *q = P;
    q++;
           


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题