RSS Forums RSS
Please support our C advertiser: Programming Forums

Changing the meaning of IF else statement

Join Date: Feb 2007
Location: Bangalore, India
Posts: 535
Reputation: thekashyap will become famous soon enough thekashyap will become famous soon enough 
Rep Power: 4
Solved Threads: 50
thekashyap's Avatar
thekashyap thekashyap is offline Offline
Posting Pro

Re: Changing the meaning of IF else statement

  #5  
Mar 28th, 2007
Originally Posted by Ancient Dragon View Post
you are right -- I didn't read the expected outcome, which is impossible. There is no solution that will give that outcome.

What abt GOTO LABEL?

  1. if ( true )
  2. {
  3. cout << "Hi" << endl ;
  4. goto ELSE_PART ;
  5. }
  6. else
  7. {
  8. ELSE_PART:
  9. cout << " There" << endl ;
  10. }

of course that's cheating but then teh question is not fair..
Last edited by thekashyap : Mar 28th, 2007 at 12:23 pm.
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 10:00 am.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC