The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
134 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 by Active (4.2k points)
edited by | 134 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
50,376 questions
55,840 answers
192,571 comments
91,402 users