+ 1
Difference between scanf("%c",p); and scanf("%c",&p); in c???
6 Réponses
+ 3
In C scanf() requires pointers to the variable in which the value is to be stored. Therefore we pass address(&). Without that it gets error. 🙂
+ 1
Krishna vamsi but scanf("%c",p); also works without errors
+ 1
C Lover
I think it will be better if you can save and share your full code here so the doubt can be cleared.
And please remove Java from the thread's tags for context clarity improvement 👍
0
Yes it runs without compile time error, but you can't access it
0
You can refer this
https://code.sololearn.com/cKF0ef209xwT/?ref=app
0
I can able to access