TCS Company Programming Database

Predict the output of following code:
main()
{
100; ​ // valid but no effect
printf(“%d”,100);
}
1.Error
2. 100
3. Garbage value
4. 100100

Read Solution (Total 6)

TCS Other Question

Guess the output:
main()
{
printf(“n ks”);
printf(“b mi a”);
printf(“r ha n”);
}
1. ksmiha
2. mis
3. hai ​
4. hamiks
Predict the output of following code:
main()
{
printf(“​ %d​ ”,printf(“​ FACE​ ”)); //valid
}
1.FACE4
2. Error
3. Garbage value
4. FACE