Advertisement
shohan11421

Untitled

Jan 23rd, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.29 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<string.h>
  3. struct person
  4. {
  5.     char name[30];
  6.     int age;
  7.     double salary;
  8. }p1;
  9. int main()
  10. {
  11.  //struct person p1;
  12.  strcpy(p1.name, "Joss Buttler");
  13.  p1.age=28;
  14.  p1.salary=500.65;
  15.  printf("name= %s age %d salary %lf",p1.name,p1.age,p1.salary);
  16.  return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement