TCS Company Programming Output

Predict the output of following code:
main()
{
int a=10,b=20,c=5,d;
d=a

Read Solution (Total 9)

TCS Other Question

Predict the output of following code:
main()
{
int x,a=10;
x=a==10?printf("hait"):printf("hellon");
printf("%d",x);
}
1.hai 4
2. Error
3. hello 3
4. hai hello
How many of the following are invalid
variable name?
NUMBER
first.name
midname. _num ​ 93num
num93
last name ​ nUMBER
4321
1. 5
2. 3
3. 2
4. More than 5