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  >  IBM  >  Technical

 Print  |  
Question:  

main()

{

printf("%u",main);

}

what will be the output?

main()

{

int 1,b;

int con;

1=b=2;

con (b==1) ? 1 : 0;

printf("%d",con);

} what will be the value of con?



January 01, 2006 13:04:03 #2
 kalyantheprince   Member Since: January 2006    Total Comments: 2 

RE: main(){printf("%u",main);}...
 

main()

{

printf("%u",main);

}

In this program it takes main as the variable and gives the output as some garbage value which is stored in it.

     

 

Back To Question