structure for student
#include<stdio.h>
struct student
{
char name[20];
int roll,age; };
int main()
{
struct student s;
printf("\nEnter the details of the student:\n");
scanf("%s %d %d" , s.name , &s.roll , &s.age);
printf("\nThe details of the student is as follows\n");
printf("\n %s \n %d \n %d", s.name , s.roll, s.age);
return 0; }
You can also find structure program
- C Structure Program to Store Information of Students Using
- C program to store information using structure for array of structures
- c program for student marksheet using structure
- c program using structure to find students grades in a class
- student mark list program in c using array
- c program examples using structures
- c++ program for student details using structure
- c program using structures employee details
- c program using structure array
- c program for student details using files