Follow us on: facebook twitter linkedin

PROGRAMING

Structure in C

Post by : John Deo
Post date: 2023-12-13 14:29:54

Read time : 2 minute
Total views: 310 times
hero-img

Structure

In C programming language structure known as container for various type variable. We can store int float character variable  together in structure. Structure should be declare by struct keyword.

 

Example

struct empDetails
{
   int emp_id;
   char emp_name[50];
   char birth_date[20];
}

 

struct empDetails emp1;

Share by:

Keep exploring

Read what excites, achieves and moves us Read what excites, achieves and moves us