Login
Remember
Register
Questions
Unanswered
Tags
Users
Ask a Question
Ask a Question
Are all arrays pointers in C++?
0
votes
asked
Jun 26, 2021
by
pointertoarray
(
120
points)
Are all arrays pointers in C++?
array
pointer
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jul 13, 2021
by
doublethrowswitch
(
1.4k
points)
Pointer to Array
Use a
pointer
to an
array
, and then use that
pointer
to access the
array
elements. For
example
, #include<stdio.h> void main() { int a[3] = {1, 2, 3}; int *p = a; for (int i = 0; i < 3; i++) { printf("%d", *p); p++; } return 0; }
Please
log in
or
register
to add a comment.
Related questions
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 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
Can a pointer point to an array?
asked
Jul 14, 2021
by
pointers
(
160
points)
array
pointers
pointer
can
0
votes
1
answer
What is pointer to array explain with example?
asked
Jun 26, 2021
by
pointertoanarray
(
1.3k
points)
array pointer
pointer
array
0
votes
1
answer
Why should I use pointers in C++?
asked
Jun 26, 2021
by
pointers
(
160
points)
pointers
access
pointer
0
votes
1
answer
Do arrays use the length method?
asked
May 26, 2021
by
size0can
(
120
points)
array
size 0 can
contain
length
size
0
votes
1
answer
Is joystick a pointing device?
asked
Feb 6, 2020
by
joystick
(
640
points)
pointer
joystick
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 do you point a pointer to an array?
asked
May 24, 2021
by
array39s
(
120
points)
c
pass
array
array 39 s
17.3k
questions
16.1k
answers
7.1k
users
Hotenda Hot
GRM155R71C104KA88D
GRM155R71A104KA01D
GRM155R61C104KA88D
GRM155R61A104KA01D
GRM155R61A105KE15D
GRM155R61C105KA12D
GRM155R61E104KA87D
GRM155R61E105KA12D
CL10A106KP8NNNC
CL10A105KA8NNNC
...