0% found this document useful (0 votes)
15 views3 pages

Making A Working Student Interface Using Structure Command in C Programming

Uploaded by

Grape tape
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views3 pages

Making A Working Student Interface Using Structure Command in C Programming

Uploaded by

Grape tape
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as RTF, PDF, TXT or read online on Scribd
You are on page 1/ 3

#include<stdio.

h>

#include<conio.h>

struct student

char name[20];

int rollNo;

float marks;

};

struct student accept();

void show(struct student s);

int main()

clrscr();

struct student s1;

printf("Structure: student\n\n");

s1=accept();

show(s1);

getch();

return 0;

}
struct student accept()

struct student s;

printf("\nEnter Details\n\n");

printf("Name :");

scanf("%s",s.name);

printf("Roll Number : ");

scanf("%d",&s.rollNo);

printf("Marks :");

scanf("%f" , &s.marks);

return s;

void show(struct student s)

printf("\n Given Details \n\n");

printf("Name : %s\n”,s.name);

printf("Roll number : \n",s.rollNo);

printf("Marks : %.2f\n",s.marks);

OUTPUT:

You might also like