C++- Struct data series


  • Struct contains hetergenous data types in a series.
  • Unlike array Struct can contain different data types
  • using struct key word, initiating variable with in the struct block
  • Code : testmystructSerial1.txt

Step: 1 Create a project

Step: 2 Now add a source file

Step: 3 Edit code ( Eclipse IDE is smart )

Step: 4 run time views

Step: 5

Step: 6

Step: 7