All structure programs with examples


Structure is user defined data type available in C programming language that allows to combine data items of different kinds.

"struct" keyword is used to create a structure in C programming language.

Structure is user defined data type available in C programming language that allows to combine data items of different kinds. Structures are used to represent a record. for example you want to keep track of student of a school. You might want to track the following attributes about each student −

  • Roll No
  • Name
  • Marks

Structure Syntax


  1. struct student
  2. {
  3. int roll;
  4. char name[50];
  5. float marks;
  6. }

I have used Code::blocks 12 compiler for debugging purpose. But you can use any C programming language compiler as per your

techstudy.org

HP 15 Core i3 7th gen Laptop(4GB, 1TB HDD, Windows 10) | Rs. 31,490






Related Topics





Popular Posts