0% found this document useful (0 votes)
6 views

Function

The document defines a struct called emplyee with fields name, phone, and salary and declares a variable per1 of that struct type. It then assigns values to per1's phone and salary fields and prints them out.

Uploaded by

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

Function

The document defines a struct called emplyee with fields name, phone, and salary and declares a variable per1 of that struct type. It then assigns values to per1's phone and salary fields and prints them out.

Uploaded by

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

1 #include<stdio.

h>
2 #include<string.h>
3 struct emplyee{
4 char name[30];
5 int phone;
6 float salary;
7 }per1;
8
9 int main(){
10 per1.phone=1034;
11 per1.salary=13828.0;
12 //per1.name[30]=saikat;
13
14 printf(" Enter phone Number: %d \n",per1.phone);
15 printf(" Enter salary Number: %.2f \n",per1.salary);
16 //printf(" Enter Name: %c",per1.name);
17
18 return 0;
19 }
20

You might also like