0
What's wrong with it
5 Answers
+ 9
Do you use a Chinese keyboard? In the line printf("%x"ļ¼&c); you're using what looks like a Chinese comma. Replace it with an ASCII comma. Also, main() should have int as return type
Gordon I think he's trying to print the address of the variable. So both %x and &c are correct (could also use %p)
+ 7
1. int main not void main
2. , not ļ¼
3. %d not %x
4. c not &c
+ 3
printf("%d",c);
+ 3
printf("%d",c); prints the value of the integer variable
printf("%x", &c); prints the hexadecimal representation of the variable's address
+ 1
thanks for all the suggestions above