search
Log In
0 votes
216 views
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
in Programming
edited by
216 views
0
d,e?
0

printf("%c, %c", *((char*)b+1)- 1, *(char*)b+ 2)- 1);

 one more paranthesis is missing, correct it !

0

My doubt is that when it print D option

Please log in or register to answer this question.

Related questions

2 votes
0 answers
2
231 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)?
asked Jan 28, 2019 in Programming srestha 231 views
2 votes
0 answers
3
238 views
Q.Consider a 2 dimensional array A[40 ... 95, 40 ... 95] in lower triangular matrix representation. If the array is implemented in the memory in the form of row major order and base address of the array is 1000, then the address of A[66][50] will be ________.
asked Jan 27, 2019 in Programming Badayayash 238 views
0 votes
2 answers
4
...