by Dinesh Thakur Category: Array Pointer and Union

Arrays are declared as follows:

 

int p[5];

float temp[30];

char a[7];

 
by Dinesh Thakur Category: Array Pointer and Union

When an element of a structure has to be accessed through pointer, then the -> operator is used. It is essential to initialize the pointer before it accesses any structure element.

 
by Dinesh Thakur Category: Array Pointer and Union

Structure elements can be referenced by writing the structure variable before the structure element. The structure variable and the structure element are separated by a dot (.) which is called the dot operator. For example

 

Page 4 of 4



About Dinesh Thakur

Dinesh ThakurDinesh Thakur holds an B.SC (Computer Science), 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