Dharma Systems - Technical
Question : Give the output of the program:
void main()
{
int d=5;
printf("%f",d);
}
Answer : Undefined
Question : Give the output of the program
void main()
{
int i;
for(i=1;i k=255; */
signed j=-1; /* char k= -1 => k=65535 */
/* unsigned or signed int k= -1 =>k=65535 */
if(ij)
printf("greater");
else
if(i==j)
printf("equal");
}
Answer : less
Question : void main()
{
float j;
j=1000*1000;
printf("%f",j);
}
A. 1000000
B. Overflow
C. Error
D. None
Answer : D