Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- typedef struct b{
- int i, j;
- }b;
- typedef struct A{
- int i, j;
- b z;
- }A;
- A a = {
- .i = 10,
- .j = 35,
- .z = { .i = 56, .j = 97673 }
- };
- int main(){
- printf("Struct A : %d, %dnstruct B in A : %d, %d n", a.i, a.j, a.z.i, a.z.j);
- return 0;
- }
Add Comment
Please, Sign In to add comment