logo

Crowdly

Browser

Add to Chrome

#include <stdio.h> #include <string.h> #define MAX 10 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>

#define MAX 10

struct S {

  char * ch1;

  char ch2[MAX];

};

int main(void)

{

  struct S s1;

  s1.ch1="OULA";

  strcpy(s1.ch2,"OULA");

  s1.ch2[0]='A';

  s1.ch1="BB";

  printf("%s %s\n",s1.ch1,s1.ch2);

  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