The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
114 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
asked in Programming by Active (3.5k points)
edited by | 114 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

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
49,808 questions
54,481 answers
188,251 comments
74,530 users