2) #include struct uu 11 8 5 8 11 11 5 15 int x; struct uu *p; }; struct uu fun(struct uu d) d.x *= 3; d.p = NULL; return d; > //continues

C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter9: Records (struct)
Section: Chapter Questions
Problem 12SA
icon
Related questions
Question

can you explain this question , i just want basic experession for understanding

it is c programming data structures

2)
#include <stdio.h>
struct uu
11 8 5
8 11 11
5 15
int x;
struct uu *p;
struct uu fun(struct uu d)
d.x *= 3; d.p= NULL;
return d;
} //continues
main()
struct uu a[3] = {{5,a+2}, (8, a+1}, (11,a}};
int j;
for(j=0; j<3; j++) printf("%d ", alj].p->x);
printf("\n");
a[0].p--;
a[1].p++;
a[2].p += 2;
for(j=0; j<3; j++) printf("%d ", all.p->x);
printf("\n");
a[1] = fun(a[0]);
for(j=0; j<3; j++)
printf("%d ", a[j].x);
if(a[i).p == NULL) break;
Transcribed Image Text:2) #include <stdio.h> struct uu 11 8 5 8 11 11 5 15 int x; struct uu *p; struct uu fun(struct uu d) d.x *= 3; d.p= NULL; return d; } //continues main() struct uu a[3] = {{5,a+2}, (8, a+1}, (11,a}}; int j; for(j=0; j<3; j++) printf("%d ", alj].p->x); printf("\n"); a[0].p--; a[1].p++; a[2].p += 2; for(j=0; j<3; j++) printf("%d ", all.p->x); printf("\n"); a[1] = fun(a[0]); for(j=0; j<3; j++) printf("%d ", a[j].x); if(a[i).p == NULL) break;
Expert Solution
steps

Step by step

Solved in 2 steps with 3 images

Blurred answer
Knowledge Booster
Variables
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr