logo

Crowdly

Browser

Add to Chrome

#include <stdio.h> #include <string.h> int main() {   struct S...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

#include <stdio.h>

#include <string.h>

int main() {

  struct S {

    int a;

    int b;

    char c[20];

  } *Y;

  struct S Z [2] =

  {

    {2,0,"MdC"},

    {3,7,"CdR"}

  };

  Y = Z;

  Y.a = 3;

  Y.b = 1;

  strcpy(Y.c, "DdR");

  Z[0].a += Z[1].b;

  Z[0].b += Z[1].a;

  printf("%d %d %s : %d %d %s\n",

              Z[0].a, Z[0].b, Z[0].c, Z[1].a,Z[1].b, Z[1].c);

  return 0;

}

Que donne l'exécution de ce programme ?

More questions like this

Want instant access to all verified answers on moodle.insa-toulouse.fr?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome