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

Kindle Paperwhite High Resolution Display Tablet | Rs. 9999






Related Topics



Responses




Popular Posts

Facebook

Founded in 2016, Tech Study passionately delivers stylish and dynamic innovative information to programmer and technology lovers. http://www.techstudy.org/.