#include<stdio.h>
void main()
{
clrscr();
if((2==2) && printf("0") || 0)
printf("true");
else
printf("false");
}
a)true b)0true c)false d)0
-----------------------------------------------------------------------------------------------------------------------------
#include<stdio.h>
void main()
{
int ch='\0';
clrscr();
ch++;
while(1 && ch)
printf("%d",ch--);
}
a)NULLb)0 c)1 d)infinate loop
-----------------------------------------------------------------------------------------------------------------------------
#include<stdio.h>
void main()
{
int ch=NULL || EOF+1 && EOF ;
clrscr();
printf("%d",ch);
}
a)0 b)1 c)-1 d)48
----------------------------------------------------------------------------------------------------------------------------
#include<stdio.h>
void main()
{
printf("a\/b=c",'%d',"%d");
}
a)a=c b)a\/b=c c)a/b=c d)error
---------------------------------------------------------------------------------------------------------------------------
#include<stdio.h>
void main()
{
clrscr();
printf("%d",1||-1?('\n'==10!=0):printf("ok"));
}
a)1 b)0 c)error d)ok
#include<stdio.h>
void main()
{
float x=10.2345F;
int a;
clrscr();
a=x-(int)x;
printf("\n%f",(float)a);
}
a)10.234500 b)0.000000 c)error d)10.2345
#include<stdio.h>
void main()
{
clrscr();
printf("a%cb",'\\b');
}
a)a\b b)a\\b c)b d)error
#include<stdio.h>
void main()
{
float f=2.0;
clrscr();
printf("%d\t\t%d",a,sizeof(2.0f+2));
}
a)4 b)8 c)6 d)error
void main()
{
clrscr();
if((2==2) && printf("0") || 0)
printf("true");
else
printf("false");
}
a)true b)0true c)false d)0
-----------------------------------------------------------------------------------------------------------------------------
#include<stdio.h>
void main()
{
int ch='\0';
clrscr();
ch++;
while(1 && ch)
printf("%d",ch--);
}
a)NULLb)0 c)1 d)infinate loop
-----------------------------------------------------------------------------------------------------------------------------
#include<stdio.h>
void main()
{
int ch=NULL || EOF+1 && EOF ;
clrscr();
printf("%d",ch);
}
a)0 b)1 c)-1 d)48
----------------------------------------------------------------------------------------------------------------------------
#include<stdio.h>
void main()
{
printf("a\/b=c",'%d',"%d");
}
a)a=c b)a\/b=c c)a/b=c d)error
---------------------------------------------------------------------------------------------------------------------------
#include<stdio.h>
void main()
{
clrscr();
printf("%d",1||-1?('\n'==10!=0):printf("ok"));
}
a)1 b)0 c)error d)ok
#include<stdio.h>
void main()
{
float x=10.2345F;
int a;
clrscr();
a=x-(int)x;
printf("\n%f",(float)a);
}
a)10.234500 b)0.000000 c)error d)10.2345
#include<stdio.h>
void main()
{
clrscr();
printf("a%cb",'\\b');
}
a)a\b b)a\\b c)b d)error
#include<stdio.h>
void main()
{
float f=2.0;
clrscr();
printf("%d\t\t%d",a,sizeof(2.0f+2));
}
a)4 b)8 c)6 d)error
No comments:
Post a Comment