+ 2

I want to use scanf function to get an input and then assign it's value to my array? Can You Please help me out?

We know that array can be changed with a statement. But I can't get the above problem's solution. Please help me out. Any Help Would Be Appreciated.

18th Jan 2019, 2:11 PM
Vinayak Sharma
Vinayak Sharma - avatar
1 Respuesta
+ 5
int arr[1]; scanf("%d", &arr[0]);
18th Jan 2019, 4:03 PM
John Wells
John Wells - avatar