1Answers
The c language lets the user adjust the position of the array elements themselves.
Asked by: Ruth Young 178 views IT
int a[10],k;
scanf("%d",a+k);
What does scanf mean, how do you output it?
Welcome Guest.
Asked by: Ruth Young 178 views IT
int a[10],k;
scanf("%d",a+k);
What does scanf mean, how do you output it?
+8Votes
scanf is the input function, the input can be done after the program runs.
%d indicates that the input format is limited to a decimal integer
a+k means input to a[k]