Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- struct People
- {
- int age;
- char name[29];
- double fWeight;
- };
- void v(People *p);
- /////////////////////////////////////////////////
- int main()
- {
- People people,
- pep_2;
- people.age=15;
- strcpy(people.name, "Dima");
- people.fWeight = 75.571;
- v(&people);
- }
- //////////////////////////////////////////////////
- void v(People *p)
- {
- printf("name = %s \n" ,p->name );
- printf("age = %d \n" ,p->age );
- printf("Weight = %.3f \n" ,p->fWeight);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement