What will be the output of the following “C” program?

Loading

Practice Control Instructions – What will be the output of the following “C” program?


#include
int main(){
char c=-64;
int i=-32;
unsigned int u =-16;
if(c>i){
printf("pass1");
if(c printf("pass2");
else
printf("Fail2");
}
else
printf("Fail1”);

if(c==i)
printf("pass2");
else
printf("Fail2");
return 0;
}

What will be the output of the following “C” program?

Loading

Practice Control Instructions – What will be the output of the following “C” program?


int main ()
{
unsigned int i;
for (i = 10; i >= 0; i--)
printf ("%d", i);
}