Why we use (&) in scanf? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 2

Why we use (&) in scanf?

.....

30th May 2020, 7:19 AM
Aviral Kaushik
Aviral Kaushik - avatar
4 Respostas
+ 6
To get the value of the pointer and not variable... value points to the pointer and the pointer points to the variable.... Otherwise the computer will dump the core...
30th May 2020, 7:20 AM
Namit Jain
Namit Jain - avatar
+ 2
To pass it by pointer to change the value by the user.
30th May 2020, 8:24 AM
ä½ ēŸ„é“č¦å‰‡ļ¼Œęˆ‘也ę˜Æ
ä½ ēŸ„é“č¦å‰‡ļ¼Œęˆ‘也ę˜Æ - avatar
+ 2
To get input form user
31st May 2020, 8:15 AM
šŸ’ž SHAINA šŸ’ž
šŸ’ž SHAINA šŸ’ž - avatar
31st May 2020, 11:07 AM
A S Raghuvanshi
A S Raghuvanshi - avatar