Jumat, 17 Februari 2017

How to access structure members using Type Defined Structures

We can use the keyword typedef to define a structure as follows: 1 2 3 4 5 6 7 typedef  struct { char name; char rollno; int age; char grade; }student; The name student represents the structure definition associated with it and therefore can be used to declare structure variables as shown below: 1 student student1, student2, student3;   Accessing Structure Members We can access and assign values to the members of a structure in a number of ways. As mentioned earlier, the members themselves are not variables. They should be linked to the structure variables in order to make them

The post How to access structure members using Type Defined Structures appeared first on Coding Security.


How to access structure members using Type Defined Structures
read more

Tidak ada komentar:

Posting Komentar