TCS Company Programming Variables

Predict the output of following code:
main()
{
unsigned int a= -1;
signed int b=10;
if(a

Read Solution (Total 1)

TCS Other Question

Predict the output of following code:
main()
{
int x=10,y=-10;
printf(“%x t”,x<>2);
}

1. 28 fffd
2. 40 -3
3. Error
4. 0,1
Predict the output of following code:
main()
{
if(1) // True always
printf(“hai”);
else
printf(“hello”);
}

1. Error
2. hai
3. hello
4. No output