Login
Remember
Register
Questions
Unanswered
Tags
Users
Ask a Question
Ask a Question
What is pointer to array explain with example?
0
votes
asked
Jun 26, 2021
by
pointertoanarray
(
1.3k
points)
What is pointer to array explain with example?
array pointer
pointer
array
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jul 13, 2021
by
doublethrowswitch
(
1.4k
points)
Pointer to an array
is also known as
array pointer
. We are using the
pointer
to access the components of the
array
. int a[3] = {3, 4, 5 }; int *ptr = a; We have a
pointer
ptr that focuses to the 0th component of the
array
.
Jun 13, 2019
');})();(function(){window.jsl.dh('26','
Difference between pointer to an array and array of pointers ...
https://www.geeksforgeeks.org
\u203a difference-between-poin...
https://www.geeksforgeeks.org
\u203a difference-between-poin...
');})();(function(){window.jsl.dh('_cpagYPK7FMXH-wT4qYXoDw43','
Search for:
Can a pointer point to an array C++?
');})();(function(){window.jsl.dh('28','
It is legal to use
array
names as constant
pointers
, and vice versa. Therefore, *(balance + 4) is a legitimate way of accessing the data at balance[4]. In the above example, p is a
pointer
to double which means it
can
store address of a variable of double type.
Please
log in
or
register
to add a comment.
Related questions
0
votes
1
answer
Can a pointer point to an array?
asked
Jul 14, 2021
by
pointers
(
160
points)
array
pointers
pointer
can
0
votes
1
answer
How do you declare a pointer to an array of pointers to INT?
asked
May 24, 2021
by
pointer
(
140
points)
points
array
pointer
0
votes
1
answer
How do you declare an array pointer in C++?
asked
May 27, 2021
by
pointer
(
140
points)
c
array
pointer
0
votes
1
answer
How do you create an array of pointers in C++?
asked
Jul 8, 2021
by
pointers
(
160
points)
arrays
pointers
c
array
pointer
0
votes
1
answer
How do you point a pointer to an array?
asked
May 24, 2021
by
array39s
(
120
points)
c
pass
array
array 39 s
0
votes
1
answer
Are all arrays pointers in C++?
asked
Jun 26, 2021
by
pointertoarray
(
120
points)
array
pointer
0
votes
1
answer
Can an array have length 0?
asked
May 26, 2021
by
arraysize
(
120
points)
array
get
0
votes
1
answer
How does a photodiode array work?
asked
Nov 28, 2019
by
photodiodes
(
320
points)
array
photodiodes
work
0
votes
1
answer
Is joystick a pointing device?
asked
Feb 6, 2020
by
joystick
(
640
points)
pointer
joystick
0
votes
1
answer
Why should I use pointers in C++?
asked
Jun 26, 2021
by
pointers
(
160
points)
pointers
access
pointer
17.3k
questions
16.1k
answers
7.1k
users
Hotenda Hot
GRM155R71C104KA88D
GRM155R71A104KA01D
GRM155R61C104KA88D
GRM155R61A104KA01D
GRM155R61A105KE15D
GRM155R61C105KA12D
GRM155R61E104KA87D
GRM155R61E105KA12D
CL10A106KP8NNNC
CL10A105KA8NNNC
...