Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- struct Book{
- char c;
- int myNumber;
- };
- int main(){
- struct Book b1;
- struct Book b2;
- b1.c = 'd';
- b1.myNumber = 200;
- printf("The value of b1.c is: %C\n",b1.c);
- printf("The value of b1.myNumber is: %d\n",b1.myNumber);
- b2.c = 'e';
- b2.myNumber = 300;
- printf("The value of b2.c is: %C\n",b2.c);
- printf("The value of b2.myNumber is: %d\n",b2.myNumber);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement