programplug Logo




C Structures


Collection of different data type call structure.‘struct’ keyword is used to create a structure.

struct structure_name
{
  data-type1;
  data-type2;
};
   
struct Point
{
   int x, y;
};
void main()
{
   struct Point p1 = {0, 1}; //calling structure
   p1.x = 20;
   printf ("x = %d, y = %d", p1.x, p1.y); 
}

Output
20 1






Our Services

Developing Cheapest Websites
Offer Digital Marketing
Provide College Projects
Attractive Website Developing
Summer Training,Industrial Training
SCO,SMO

Contact Us

Dehradun Uttarakhand India
www.programplug.com
info@programplug.com
00000000

Other Link

About Us

Contact Us

Disclaimer

Privacy Policy