p=(int*)malloc=(4);括号前显示表达式必须是修改的左值哪里错了?
#include<stdio.h>
#include<stdlib.h>
int main(int egrc, char** egrv)
{
int a = 10;
int*p;
{
int b = 20;
p=(int *)malloc=(4);
}
return 0;
*p = 4;
printf(" *p:%d\n", *p);
}
#include<stdio.h>
#include<stdlib.h>
int main(int egrc, char** egrv)
{
int a = 10;
int*p;
{
int b = 20;
p=(int *)malloc=(4);
}
return 0;
*p = 4;
printf(" *p:%d\n", *p);
}
2022-07-11
举报