logo

Crowdly

Browser

Add to Chrome

langage C

Looking for langage C test answers and solutions? Browse our comprehensive collection of verified answers for langage C at moodle.insa-toulouse.fr.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

#include <stdio.h>

int main(void)

{

  int i;

  int tab[10];

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

    tab[i] = i;

  printf("%d ", tab[i-1]);

  printf("fin du programme\n");

  return 0;

}

Que va afficher le programme ?

View this question
#include <stdio.h>

#include <stdlib.h>

int main(void)

{

  int tab1[5]={0,1,2,3,4};

  int tab2[5]={1,2,3,4,5};

  int i;

  <COMPLETER>

  return(0);

}

Completer la ligne <COMPLETER>

View this question
#include <stdio.h>

int main()

{

  float moyenne[20];

  int i;

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

    moyenne[i] = i-moyenne[i+1];

 

  printf("%f\n",moyenne[19]);

  return 0;

}

Qu'affiche ce programme?

View this question
#include <stdio.h>

int main(void)

{

  int i;

  int tab[10];

  for (i = 0 ; i < 2 ; i++){

    tab[i+1] = i;

    printf("%d ", tab[i+1]);

  }

  printf("fin du programme\n");

  return 0;

}

Que va afficher le programme ?

View this question
#include <stdio.h>

#include <stdlib.h>

int main(void)

{

  <COMPLETER>

  int i;

  for (i=0;i<5;i++) {

    printf("%d\n",tab[i]);

  }

  return (0);

}

Compléter la ligne <COMPLETER>

View this question
#include <stdio.h>

int main()

{

  float moyenne[20];

  int i;

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

    moyenne[i] = (float)i/10;

 

  printf("%f\n",moyenne[19]);

  return 0;

}

Qu'affiche ce programme?

View this question
#include <stdio.h>

#include <stdlib.h>

int main(void)

{

  int tab[5]={0,1,2,3,4};

  int i;

  for (i=0;i<5;i++) {

    <COMPLETER>

  }

  return (0);

}

Compléter la ligne <COMPLETER>

View this question
#include <stdio.h>

int main()

{

  float moyenne[20];

  int i;

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

    moyenne[i] = (float)i/10;

 

  printf("%f\n",moyenne[19]);

  return 0;

}

Qu'affiche ce programme?

View this question
#include <stdio.h>

int main(void)

{

  unsigned int i;

  i = 0;

  while (i < -1)

    i++;

  printf("i=%d fin programme\n",i);

  return 0;

}

Que va afficher le programme ?

0%
0%
0%
0%
0%
0%
0%
0%
View this question
#include <stdio.h>

int main(void)

{

  int i;

  i = 0;

  do;

    i++;

  while (i < 10);

  printf("fin programme\n");

  return 0;

}

Que va afficher le programme ?

0%
0%
0%
0%
0%
0%
0%
0%
View this question

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