GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

  GeekInterview.com  >  Placement Papers  >  TCS  >  C

 Print  |  
Question:  what is the output of following program?
#include
void main()
{
printf("%d%d",sizeof(NULL),sizeof(" "));
}




November 11, 2008 10:10:24 #8
 joejan   Member Since: November 2008    Total Comments: 1 

RE: what is the output of following program?#includevoid main(){printf("%d%d",sizeof(NULL),sizeof(" "));}
 
It is 2 2. If the there are 3 spaces in between the brackets, output would be 2 3
     

 

Back To Question