TCS Company Programming Basics

Guess the output:
main()
{
printf(“n ks”);
printf(“b mi a”);
printf(“r ha n”);
}
1. ksmiha
2. mis
3. hai ​
4. hamiks

Read Solution (Total 9)

TCS Other Question

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