Array of Pointer Assignment Help

Assignment Help: >> Arrays >> Array of Pointer

Array of Pointer

                  Arrays of pointers refer to homogeneous collection of pointer i.e. collection of pointers of the same data type. The pointers are declared in array from same as other data types. For example an integer pointer array of size 50 can be declared as:

                  Int *ptr[50]

                  A pointer may also be used with more than one array declaration of same data type for an array pointer of size 50 can be used for first array of size 20 second array of size 20 and the third of 10. Here the pointer will be declared as:

                  Int a[20], b[20],c[10]:

                  Int *ptr [50] :

In above give expression, we can assign the address element of each array as:

                  Ptr [0]=&a[0] :

                  Ptr [20]=&a[0]:

                  Ptr [40]=&a[0] :

Below given is the program using array of pointers.

Example 3.13 To display the content of pointers using an array of pointes.

                  #include<stdio.h>

                  #include<conio.h>

                  Main ( )

                  {                Char *ptr1 [3]:

                                    Clrscr( ) ;

                                    Ptr [0] = "hello"!" ;

                                    Prt[1] = "How are " ;

                                    Ptr[2] = "you" ;

                                    Print("%s%s",ptr[0],ptr1[1],ptr1[2] ;

                                    Getch ( ) ;

                  }

The output of time above program will be

                  Hellos how are you

            In above program an array of pointer of character type is declared and all the pointers are initialized. Then the contents of these pointers are displayed individually

Data Structure & Algorithms Assignment Help, Live Experts 

Struggling with data structure problems? Data structure subject is quite tough to learn? Need quick assistance in data structure questions? ExpertsMind.com is right place for you where your search ends, We at ExpertsMind offer online data structure assignment help, data structure homework help and data structure and algorithms question's answers by best online support by qualified tutors.

ExpertsMind.com - Array of Pointer Assignment Help, Array of Pointer Homework Help, Array of Pointer Assignment Tutors, Array of Pointer Solutions, Array of Pointer Answers, Arrays Assignment Tutors

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd