Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<string.h>
- struct person
- {
- char name[30];
- int age;
- double salary;
- }p1;
- int main()
- {
- //struct person p1;
- strcpy(p1.name, "Joss Buttler");
- p1.age=28;
- p1.salary=500.65;
- printf("name= %s age %d salary %lf",p1.name,p1.age,p1.salary);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement