Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- struct person
- {
- int age;
- float salary;
- };
- int main()
- {
- struct person person1,person2;
- person1.age = 25;
- person1.salary =22239.50;
- printf("Age = %d\n",person1.age);
- printf("Salary = %.2f\n",person1.salary);
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement