Saturday, September 24, 2011

What is the output of printf("%d")

Be The First To Comment



Ans:
printf ( "format string=""", list of="" variables="" ) ;
format string="" can contain,
%f for printing real values
%d for printing integer values
%c for printing character values

When i execute this instruction on dev c++ i got a garbage value .If you want to try this try the below code .

#include<stdio.h>
#include<conio.h>

int main()

{

printf("%d");
getch();

}

C Interview Question

0 comments:

Post a Comment

 

© 2011 Preparing For Software Interviews - Designed by Sudhir dudeja | TOS |Sitemap

About Us | Contact Us