Error: invalid operands to binary & (have ‘char *’ and ‘int’)
Hello friends,
I am learning C programming under linux recently, this is a example I tried, but got an error. Code:
1 /* Insurance of driver - using logical operators */ Code:
root@gpl-vm:/lianxi/ch2# cat /proc/version |
probably you missed a , before &age.
scanf("%d %c %c", &age, &sex, &ms); |
Quote:
Edit: Too late. |
Quote:
|
great! you are not silly, just made a mistake. Try to interpret the error message and look for strange things (like "binary &")
And press YES (bottom right corner) if you really want to say thanks. |
All times are GMT -5. The time now is 05:46 PM. |