TCS Company Programming Program

What is the output of:
main( )
{
int a, b ;
a = -3 - - 3 ;
b = -3 - - ( - 3 ) ;
printf ( "a = %d b = %d", a, b ) ;
}

Read Solution (Total 16)

TCS Other Question

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 ) ;
}
What will the statement
char ch='A';
store in variable ch?

a. The character A
b. Ascii value of character A
c. A along with inverted commas
d. None of the above