TCS Company Programming Definition

What is the output of:
#include
int main()
{
int x=40;
{
int x=20;
printf("%d",x);
}
printf("%d",x);
return 0;
}

Read Solution (Total 8)

TCS Other Question

what will be the o/p of the program
main()
{
float me = 1.1;
double you = 1.1;
if(me==you)
printf("I love m4math");
else
printf("I realy like m4math");
}
What is the output of the following program:
void main( )
{
int i = 2, j = 3, k, l ;
float a, b ;
k = i / j * j ;
l = j / i * i ;
a = i / j * j ;
b = j / i * i ;
printf( "%d %d %f %f", k, l, a, b ) ;
}