+ 1
[SOLVED] The following is illegal? How would you correct it?
int main() { float fval; int ival; int *pi; fval=ival=pi=0; }
2 ответов
+ 2
Here is a solution for your code.
Apparently the commas work.
edit
I cleaned the code, tomake it easier to follow.
https://code.sololearn.com/cMGs57M87KIH/?ref=app
+ 2
int main()
{
float fval;
int ival;
int *pi;
//This is your problem
fval=ival=pi=0;
}
define them as zero one at a time
or
try using commas.
//not sure if the commas will work.