Information Assistant 2018 - Programming Paper
Just Click Full Question Answer
1 . main()
{
Int a=10;
a+ = --a+ a++ + --a + a--;
printf(“%d”, a);
}
2 . main(){
int a=10,b;
b=++a + --a + ++a - ++a – a++;
printf(“a= %d , b= %d “,a,b);
}
3 . main(){
int a=14,b;
a=a%5;
b=a/3;
printf(“a=%d,b=%d\n”,a,b);
}
4 . main(){
int a=5,b=5;
printf(“a=%d, b=%d\n”,++a,b--);
printf(“a=%d, b=%d\n”,a,b);
printf(“a=%d, b=%d\n”,++a,--b--);
printf(“a=%d, b=%d\n”,a,b);
}
5 . main(){
int x=9;
--(-x+(++x)--);
printf(“x=%d \n”,x);
}
No comments:
Post a Comment