Sail E0 Webinar
Question

What will be output if you compile following c code ?


#include<stdio.h>
char funct(int val)
{
char ch=val;
return ch;
}
void main()
{
float a=256.25;
printf("%d",funct(a));
}


Options:
A .  0
B .  256
C .  256.25
D .  None of these
Answer: Option A




Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers