logo

Crowdly

Browser

Add to Chrome

#include <stdio.h> typedef struct t {   int efface;   char tab[4]; ...

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

#include <stdio.h>

typedef struct t {

  int efface;

  char tab[4];

}tab;

void effacer (tab tableau){

  tableau.efface=1;

}

int main(void){

  int i;

  tab tableau;

  tableau.efface=0;

  for (i=0;i<3;i++)

    tableau.tab[i]='a';

  tableau.tab[3]='\0';

  effacer(tableau);

  if (tableau.efface)

    printf("le tab est efface\n");

  else

    printf("le tab contient : %s\n",tableau.tab);

  return(0);

}

Que donne l'exécution de ce programme ?

0%
0%
0%
0%
0%
0%
0%
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