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()

{

  int age = 20;

  int vieux=0;

  for (age = age-1; age>0; age++)

  {

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

  }

 

  return 0;

}

Que fait ce programme?

View this question
#include <stdio.h>

int main(void)

{

  int i;

  i = 2;

  if (i > 2)

    printf("1er cas\n");

    printf("i > 2\n");

  else

    printf("i < 2\n");

  return 0;

}

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

}

Que va afficher ce programme?

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

#include <stdlib.h>

int main() {

  int a = 5;

  int b = 2;

  while (a > b) {

    a -= b;

    printf("%d", a);

  }

  printf("\n");

  return 0;

}

Que va afficher le programme ?

View this question
#include <stdio.h>

#include <stdlib.h>

int main()

{

  int i;

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

    if (i==5) continue;

    if (i>6) break;

  }

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

  return (0);

}

Que va afficher le programme?

View this question
#include <stdlib.h>

#include <stdio.h>

int main()

{

  int x;

  int y;

  x=3;

  y=10;

  if (x<100)

  {

    x=x+y;

    y=y+x;

    do

    {

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

      x=x+20;

    } while (x<100) ;

  }

  return 0;

}

Que va afficher le programme ?

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 ?

View this question
#include <stdio.h>

#include <stdlib.h>

int main()

{

  int j;

  j=0;

  while (j<=3){

    if (j==2){

      j--;

    }

    j+=2;

  }

  printf("“%d \n"”,j);

  return(0);

}

Que va afficher le programme?

View this question
int main (void)

{

  int a, b, c;

  a = 2;

  b = 5;

  c = 4;

  if (a = c)

  {

    a++;

  }

  if (a <= b)

  {

    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<2;i++){

    if i==1 {

      i+=3;

    }

  }

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

  return(0);

}

Que va afficher le programme?

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