With the statement, With the statement, int grades[] = (70,80,90,100,50}; int grades[] = (70,80,90,100,50}; What is statement to change the array element 50 to 65? What is statement to assign user input to array element 70? scanf("%d", &grades[0): grades(4)=65; scanf("%d", &grades[1): O grades[5]=65; scanf("%d", grades[0]): O grades(5)=65; scanf("%d", grades[1]): O grades[4]=65;

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter8: Arrays
Section: Chapter Questions
Problem 12RQ
icon
Related questions
Question
With the statement,
With the statement,
int grades[] = {70,80,90,100,50};
int grades[] = (70,80,90,100,50};
What is statement to change the array element 50 to 65? What is statement to assign user input to array element 70?
scanf("%d", &grades[0}):
grades(4)=65;
O scanf("%d", &grades[1]):
grades[5]=65;
O scanf("%d", grades(0]):
grades(5)=65;
scanf("%d", grades[1)):
grades[4]=65;
Transcribed Image Text:With the statement, With the statement, int grades[] = {70,80,90,100,50}; int grades[] = (70,80,90,100,50}; What is statement to change the array element 50 to 65? What is statement to assign user input to array element 70? scanf("%d", &grades[0}): grades(4)=65; O scanf("%d", &grades[1]): grades[5]=65; O scanf("%d", grades(0]): grades(5)=65; scanf("%d", grades[1)): grades[4]=65;
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Array
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning