Minggu, 26 Maret 2017

How to Access the Variables inside structures in C programming

Accessing Structure Members We can access and assign values to the member of a structure in a number of ways. As mentioned earlier, the member themselves are not variable. They should be linked to the structure variable in order to make them meaningful member. The link between a members and a variables are established using the members operator ‘ . ‘ which is also known as dot operators or period operator. The syntax for accessing a structure members are as shown below: 1 structure–varaible.membernamse Examples of accessing the members of the students structure are shown below: 1 2 student1.name student1.age  

The post How to Access the Variables inside structures in C programming appeared first on Coding Security.


How to Access the Variables inside structures in C programming
read more

Tidak ada komentar:

Posting Komentar