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[5]={2,3,5,6,7};

  for (i=1;i<=3;i=i+2)

  {

    printf ("%d ",i);

  }

  printf("\n");

  return (0);

}

Que va afficher ce programme?

View this question
#include <stdio.h>

#include <stdlib.h>

int main()

{

  int tabi[3];

  int i;

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

    if (i>0) {

      tabi[i]=tabi[i-1]+2;

    }

    else

    {

      tabi[i]=1;

    }

  printf("%d \n",tabi[2]);

  return (0);

}

Que va afficher ce programme ?

View this question
#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

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