Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is the result of the following C code? # include #include inf main() {struct MYDATE {int a, b; char c;} x, y; struct MYDATE

image text in transcribed
What is the result of the following C code? # include #include inf main() {struct MYDATE {int a, b; char c;} x, y; struct MYDATE *p1, *p2; p1 = &x: p2 = &y; x.a = 1: x.b = 2; y.a = 3; y.b = 4; y.a = (p2 rightarrow b > pl rightarrow a): 5; x.a = x.b + pl rightarrow b; printf("x.a = %d. x.b = % d, y.a = % d, y.b = %d", pl rightarrow a, pl rightarrow b, p2 rightarrow a, p2 rightarrow b); return 0;} x.a = ______ x.b = ________ y.a = _______ x.b = ________

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 11 The Database For Big Data And Analytics

Authors: Cristian Molaro, Surekha Parekh, Terry Purcell, Julian Stuhler

1st Edition

1583473858, 978-1583473856

More Books

Students also viewed these Databases questions

Question

Understand how to design effective service guarantees.

Answered: 1 week ago