TCS Company Programming Program

What is the output of:
main( )
{
float a = 5, b = 2 ;
int c ;
c = a % b ;
printf ( "%d", c ) ;
}

Read Solution (Total 24)

TCS Other Question

What is the output of the following program?
#include
int main(){
double d=5.2;
int i=5;
printf("%dt",sizeof(!d));
printf("%dt",sizeof(i=15/2));
printf("%d",i);
return 0;
}
What is the output of:
#include
void main( )
{
printf ( "nn nn nnn" ) ;
printf ( "nn /n/n nn/n" ) ;
}