C Programming :: Declarations and Initializations - Discussion
27 / 54
#include<stdio.h>
void main()
{
100;
printf("%d",100);
}
#include<stdio.h>
void main()
{
100;
printf("%d",100);
}
ACompilation Error
B100
C1
DNone of these
Show Explanation
100; ...........there was no use of this 100. Its only to confuse the students.
printf("%d",100); ...... its as simple as to print hello world. hence 100 is printed.
Asked In ::
100; ...........there was no use of this 100. Its only to confuse the students.
printf("%d",100); ...... its as simple as to print hello world. hence 100 is printed.
Read Full Answer
Report Error
Please Login First Click Here
Here, the only that's getting executed is line no. 5, so 100 gets executed.
Line no. 4 is is basically of no is use. You may write any number you want, but it's practically of no use, it's still going to print 100.
Read Full Answer
Report Error
Please Login First Click Here