Tricky Questions

Reply

Join Date: Feb 2006
Posts: 10
Reputation: tlly is an unknown quantity at this point 
Solved Threads: 0
tlly tlly is offline Offline
Newbie Poster

Tricky Questions

 
0
  #1
May 24th, 2006
I've got a 2 tricky questions for u. Can anyone write:
1). A "Hello World" program in 'C' without using any semicolon.
2). A 'C' program without using any loop (if, for, while,etc...) to print numbers.

A friend gave me those questions but up till now i have not been able to do them..!!
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 4,319
Reputation: Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future 
Solved Threads: 230
Team Colleague
Dave Sinkula's Avatar
Dave Sinkula Dave Sinkula is offline Offline
long time no c

Re: Tricky Questions

 
0
  #2
May 24th, 2006
Originally Posted by tlly
I've got a 2 tricky questions for u. Can anyone write:
Yes. They are so commonly asked that googling them ought to spoonfeed you enough results to choke a donkey.
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,264
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 376
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Tricky Questions

 
0
  #3
May 24th, 2006
What is this 'google' you talk of?
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,541
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 704
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: Tricky Questions

 
0
  #4
May 24th, 2006
>A friend gave me those questions but up till now i have not been able to do them..!!
Is your "friend" a teacher who teaches C and who's class you happen to be in?
I'm here to prove you wrong.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,152
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1437
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is offline Offline
Most Valuable Poster

Re: Tricky Questions

 
0
  #5
May 24th, 2006
Originally Posted by iamthwee
What is this 'google' you talk of?
Its a search engine for the internet. see www.google.com. type in a key word(s) and it will try to find it. Sometimes it works ok, but often it will return trillions of answers :mrgreen:
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,264
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 376
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Tricky Questions

 
0
  #6
May 24th, 2006
Originally Posted by Ancient Dragon
Its a search engine for the internet. see www.google.com. type in a key word(s) and it will try to find it. Sometimes it works ok, but often it will return trillions of answers :mrgreen:
*smartass* - stolen from narue.
:cheesy:
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 598
Reputation: SpS is on a distinguished road 
Solved Threads: 32
SpS's Avatar
SpS SpS is offline Offline
Posting Pro

Re: Tricky Questions

 
0
  #7
May 24th, 2006
Originally Posted by tlly
1). A "Hello World" program in 'C' without using any semicolon.
  1. while((std::cout << "Hello World"<< std::endl) == 0){}
Reply With Quote Quick reply to this message  
Join Date: Apr 2004
Posts: 4,319
Reputation: Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future Dave Sinkula has a brilliant future 
Solved Threads: 230
Team Colleague
Dave Sinkula's Avatar
Dave Sinkula Dave Sinkula is offline Offline
long time no c

Re: Tricky Questions

 
0
  #8
May 24th, 2006
Originally Posted by sunnypalsingh
Originally Posted by tlly
1). A "Hello World" program in 'C' without using any semicolon.
  1. while((std::cout << "Hello World"<< std::endl) == 0){}
What strange C you write. :p
"One of the methods used by statists to destroy capitalism consists in establishing controls that tie a given industry hand and foot, making it unable to solve its problems, then declaring that freedom has failed and stronger controls are necessary." --Ayn Rand
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 598
Reputation: SpS is on a distinguished road 
Solved Threads: 32
SpS's Avatar
SpS SpS is offline Offline
Posting Pro

Re: Tricky Questions

 
0
  #9
May 25th, 2006
Originally Posted by Dave Sinkula
What strange C you write. :p
:eek: :eek:
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 20
Reputation: ivanCeras is an unknown quantity at this point 
Solved Threads: 1
ivanCeras's Avatar
ivanCeras ivanCeras is offline Offline
Newbie Poster

Re: Tricky Questions

 
0
  #10
May 25th, 2006
Originally Posted by tlly
I've got a 2 tricky questions for u. Can anyone write:
1). A "Hello World" program in 'C' without using any semicolon.
2). A 'C' program without using any loop (if, for, while,etc...) to print numbers.

A friend gave me those questions but up till now i have not been able to do them..!!
a sophisticated,convoluted code any other programmer make proud of .... is a bad programming practice... why not keep it simple and readable... <dietel & dietel books..>
ivan_ceras at_yahoo_dot_com
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC