by Dinesh Thakur Category: Array Pointer and Union


#include<iostream. h>
#include<conio. h>
struct emp
        char *name;
        int id;
        void main()
       static struct emp e1 ={"A", 1},e2={"B",2},e3={"C",3};
       struct emp(*array[ ])={&e1,&e2,&e3};
       struct emp(* (*ptr)[3])=&array;
       cout<<(**(*ptr+ 1)).name;
       cout<<*(*ptr+ 1))->id);

About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.C.A, MCSE, MCDBA, CCNA, CCNP, A+, SCJP certifications. Dinesh authors the hugely popular blog. Where he writes how-to guides around Computer fundamental , computer software, Computer programming, and web apps. For any type of query or something that you think is missing, please feel free to Contact us.

Related Articles