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)

{

  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
#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%
0%
View this question
int main (void)

{

  int x, y, z;

  x = 9;

  y = 2;

  for (z = 6 ; z >= 2 ; z--)

  {

    y = 3;

    while (y < 6)

    {

      y++;

      if (y == z)

      {

        x = x--;

      }

    }

  }

  return 0;

}

Que vaut x à la fin du programme ?

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

#include <stdlib.h>

int main(void)

{

  int i=2;

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

    printf("%d ",i);

  return(0);

}

Que donne l'execution de ce programme ?

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

int main (void)

{

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

{

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

  int tab2[4];

  int i;

  <COMPLETER>

  return(0);

}

Compléter la ligne <COMPLETER>

View this question
#include <stdio.h>

#include <stdlib.h>

int main()

{

  int tabi;

  int i;

  for (i=1;i<4;i++)

    tabi[i]=2;

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

  return (0);

}

Que va afficher ce programme ?

0%
0%
0%
0%
0%
0%
0%
View this question
#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 ",tab[i]);

  }

  printf("\n");

  return (0);

}

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

  }

  printf("\n");

  return (0);

}

Que va afficher ce programme?

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