M
Meenu
The output of the following program confuses me
void main()
{
int x=10,y=20,z=5,i;
i=x<y<z;
printf("i=%d\n",i);
}
void main()
{
int x=10,y=20,z=5,i;
i=x<y<z;
printf("i=%d\n",i);
}
This is wrong. UseMeenu said:The output of the following program confuses me
void main()
{
int x=10,y=20,z=5,i;
i=x<y<z;
printf("i=%d\n",i);
}
Maw said:y<z is 0
x<0 is 1
i=x
Meenu said:The output of the following program confuses me
[1]
void main()
{
int x=10,y=20,z=5,i;
i=x<y<z;
printf("i=%d\n",i);
}
main()
{
char str[]="part-time musicians are semiconductors";
int a=5;
printf(a>10?"%50s":"%s",str);
}
Maw said:*the other way*
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.