Question: int main ( ) { int values [ 3 ] = ( 3 , 1 0 , 6 ) ; / / array declaration and
int main
int values; array declaration and initialization of values
int counter; control variable for loop to step through each array element
forcounter; counter ; counterloop to stop through each array element displaying the value stored in the elements
printfThe value in element d of the initialized array is: d
counter, valuescounter;
values; using assignment statement to set values into each array element
values;
values;
printf
; used for formatting purposes
forcounter; counter ; counterloop to step through each array element displaying the values stored in the elements
printfThe value kin element d of the assigned values in the array is: d
counter, valuescounter;
printf
; used for formatting purposes
forcounter; counter ; counterloop to step through each array element displaying the value the user entered
printfEnter three values: ;
scanfd &valuescounter;
printf
; used for formatting purposes
forcounter; counter ; counterloop to step through each array element displaying the values the user entered
printfThe value in element d of user input is: d
counter, valuescounter;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
