Use app×
QUIZARD
QUIZARD
JEE MAIN 2026 Crash Course
NEET 2026 Crash Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
1.1k views
in Computer by (26.0k points)

What is array of pointers? Give an example.

1 Answer

+1 vote
by (25.1k points)
selected by
 
Best answer

The one dimensional or two-dimensional pointer array is called array of pointer.
For example, int a = 10, b = 15, c = 20, d = 30, e = 40, *ptr[5];
ptr[0] = &a;
ptr[l] = &b;
ptr[2] = &c;
ptr[3] = &d;
ptr[4] = &e;
Where *ptr is integer array pointer variable and size of array is 5. i.e.; ptr[0], ptr[l], ptr[2], ptr[3], ptr[4], Each pointer can now contain the address of memory.

Related questions

+1 vote
1 answer
+1 vote
1 answer
+1 vote
2 answers
asked Jun 3, 2023 in C++ by kvdevika (178k points)

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...