By using C language and Pointer Notations and Arrays

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter7: Arrays
Section: Chapter Questions
Problem 6PP: (Numerical) a. Define an array with a maximum of 20 integer values, and fill the array with numbers...
icon
Related questions
Topic Video
Question

By using C language and Pointer Notations and Arrays

Exercise 3:
Consider the following array of integers:
Array of integers, named 'arr
-4
-12
num[0] num[1] num[2] num[3] num[4] num[5] num[6] num[7] num[8] num[9]
20
2
14
16
10
18
Implement the following pointer notations to traverse and display the given array 'arr'.
A. Printing array using array[i] notation.
B. Printing array using ptr[i] notation.
C. Printing array using *(array+i) notation.
D. Printing array using *(ptr+i) notation.
E. Printing array using "ptr notation.
Transcribed Image Text:Exercise 3: Consider the following array of integers: Array of integers, named 'arr -4 -12 num[0] num[1] num[2] num[3] num[4] num[5] num[6] num[7] num[8] num[9] 20 2 14 16 10 18 Implement the following pointer notations to traverse and display the given array 'arr'. A. Printing array using array[i] notation. B. Printing array using ptr[i] notation. C. Printing array using *(array+i) notation. D. Printing array using *(ptr+i) notation. E. Printing array using "ptr notation.
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Instruction Format
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
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage