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>

#include <stdlib.h>

int main(void)

{

  int i=3;

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

    printf("%d ",i);

  return(0);

}

Que donne l'execution de ce programme ?

View this question
#include <stdio.h>

int main (void)

{

  int i;

  int tab[5]={2,3,5,6};

 

  for i=1;i<=3;i++

  {

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

  }

  return (0);

}

View this question
#include <stdio.h>

int main(void)

{

  int i;

  i = 0;

  while (i < 10);

  i++;

  printf("fin programme\n");

  return 0;

}

Que va afficher le programme ?

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

#include <stdlib.h>

int main(void)

{

  int i=3;

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

    printf("%d\n",i);

  return(0);

}

Que donne l'execution de ce programme ?

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

#include <stdio.h>

int main()

{

      int x;

      int y;

      int z;

      x=6;

      y=2;

      if(x>5)

      {

          x=x-5;

          y=1;

      }

      z=x*y;

      printf("%d \n",z);

      return 0;

}

Que va afficher le programme ?

0%
0%
0%
0%
0%
0%
0%
View this question
int main (void)

{

  int a, b, c;

  a = 6;

  b = 2;

  c = 8;

  if (a < c)

  {

    a--;

  }

  if (a = b)

  {

    a++;

  }

  return 0;

}

Que vaut a à la fin du programme ?

View this question
int main (void)

{

  int i, j, a;

  a = 0;

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

    for (j = 6 ; j >= 2; j--) {

      if (i == j) {

        a++;

      }

    }

  }

  return 0;

}

Que vaut a à la fin du programme ?

View this question
#include <stdio.h>

#include <stdlib.h>

int main()

{

  int i;

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

    i+=2;

  }

  printf("%d \n",i);

  return(0);

}

Que va afficher le programme?

View this question
#include <stdio.h>

#include <stdlib.h>

int main()

{

  int a = 4;

  int b = 0;

  while (b < 6) {

    b += a;

  }

  printf("%d\n", b);

  return 0;

}

Que va afficher le programme ?

View this question
#include <stdio.h>

int main(void)

{

  int i;

  int tab[10];

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

    tab[i] = i;

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

  return 0;

}

Que va afficher le 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