This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCSV5编译

在主函数中定义了一个指针变量,如下

int a=3;

int *p;
p=&a;

编译出现如下警告:

variable “p” was set but never used

程序运行没有问题,但是想找出这个警告的原因是什么?

x 出现错误。请重试或与管理员联系。