Tuesday 19 August 2014

What is the Output of the following Program





#include<stdio.h>
#include<conio.h>
void main( )
{
            int i=10;
            printf("%d,%i",i,i);
}

Options:

A) 10, 20         
B) 10, 0
C) 10, 10
D) an error



Answer Option C)
Because we can give % i also for interger datatype




0 comments:

Post a Comment