2a) Using an array, write a C-program to store five numbers, the numbers should be 5 times the (array [index] + 10) . Print out the index values and...
View the step-by-step solution to:

Question


please solve this question thanks


alt="sw.jpg" />

sw.jpg

2a) Using an array, write a C-program to store five numbers, the numbers should be 5 times
the (array [index] + 10) . Print out the index values and the numbers.
2b) Use the watch window to find the address of the 3'rd element (index(2)).
Address:

Top Answer

View the full answer
Untitled14.png

2
#include <stdio.h>
3 int main()
4 - {
5
int arr[5];
6
7
for (int i=0; i<5; i++)
9
arr[i]=5*(arr[i]+10);
10
11
printf("\n") ;
12
13
printf("%d %d", arr[i] , i) ;
14...

Sign up to view the full answer

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

-

Educational Resources
  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question