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;
   cout<< "x , y " << 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
08534019974
Designed By : Mridul Gupta

Other Link

About Us

Contact Us

Disclaimer

Privacy Policy