1. Write a C++ program that uses pointer to read an integer array of ten marks a[10] and compute the average using pointer and print the result.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter10: Pointers
Section10.3: Pointer Arithmetic
Problem 5E
icon
Related questions
Question

don't copy from internet ,it is wrongelse i dislike

Homework:
1. Write a C++ program that uses pointer to read an integer array of ten
marks a[10] and compute the average using pointer and print the
result.
2. Write a C++ program that reads a number and an integer array a[10].
The program should use pointers to search for the address of that
number in the array. If the number is found, the program prints its
address; otherwise it prints "Not found".
Transcribed Image Text:Homework: 1. Write a C++ program that uses pointer to read an integer array of ten marks a[10] and compute the average using pointer and print the result. 2. Write a C++ program that reads a number and an integer array a[10]. The program should use pointers to search for the address of that number in the array. If the number is found, the program prints its address; otherwise it prints "Not found".
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Knowledge Booster
Internet
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
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr