- #1
jd12345
- 256
- 2
Why use symbol "&" when using scanf in C?
When using scanf like in scanf("%d",&x); why do we use '&' before x? can't we write directly ,x as in printf command? Is it just a convention? I think it should have a reason.. they won't just put an "&" just like that
When using scanf like in scanf("%d",&x); why do we use '&' before x? can't we write directly ,x as in printf command? Is it just a convention? I think it should have a reason.. they won't just put an "&" just like that