edited by
603 views
0 votes
0 votes
Consider the following C code:
#include <stdio.h>
struct MadeEasy
{
char p,q,r;
};
int main (void)
{
struct MadeEasy a={ d' - 2019,'e',5+'a'};
struct MadeEasy *b=&a;
printf("%c, %c", *((char*)b+1)- 1, *((char*)b+ 2)- 1);
return 0;
}
The output of the following code will be
edited by

Please log in or register to answer this question.

Related questions

2 votes
2 votes
0 answers
1
1 votes
1 votes
0 answers
2
2 votes
2 votes
0 answers
3
srestha asked Jan 28, 2019
654 views
void foo(int n) { for(i1=1;i1<=n;i1++) { for(i2=1;i2<=i1;i2++) { ....... { for(i6=1;i6<=i5;i6++) { count++; } } } } }Count initially 0.What is value returned by foo(8)?
0 votes
0 votes
1 answer
4
Markzuck asked Jan 10, 2019
522 views
Please explained detialed execution of this code, I am not getting how int stored in char, like we can interchange using ASCII but still cant store right?