Consider the following C program.

# include

struct Ournode {

        char x, y, z ;

} ;

int main ( ) {

        struct Ournode p = {‘1’, ‘0’, ‘a’ + 2} ;

        struct Ournode *q = &p;

        printf (“%c, %c”, *( (char*) q + 1) , *( (char*) q + 2) ) ;

        return 0 ;

}

The output of this program is:

1
0, c
2
0, a + 2
3
‘0’, ‘a + 2’
4
‘0’, ‘c’

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation