GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Placement Papers  >  IBM  >  Technical
Next Question 
 Technical  |  Question 1 of 98    Print  

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?


  
Total Answers and Comments: 3 Last Update: December 01, 2006   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
July 24, 2005 10:59:49   #1  
Vijaya Bhaskar M        

RE: main(){printf("%u",main);}what will be the output?main(){int 1,b;int con;1=b=2;con (b==1) ? 1 : 0;pr...
Here the program contains the error. since we cant declare variable with digits...here in this program the digit 1 is declared as integer.
 
Is this answer useful? Yes | No
January 05, 2006 13:04:03   #2  
kalyantheprince Member Since: January 2006   Contribution: 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.


 
Is this answer useful? Yes | No
December 01, 2006 01:35:06   #3  
mayuri        

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

IT CONTAINS ERROR


 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape