[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: [LI] Am I close ??



Hi

 You missed the point. I was saying how to produce output 3 4 by using the
code strip I gave. The code strip has to be the same. Producing output by
anyway is not my point.

Anybody worked on WinSDK to answer this puzzle?


 Bye
  Shridhar
  

On Wed, 19 Jan 2000, Shourya Sarcar wrote:

> On Tue, 18 Jan 2000, SHRIDHAR N. DAITHANKAR wrote:
> 
> * int i=2;
> * printf("\n%d %d ',++i,++i);
> *
> *Produces output:  4 3 under gcc.
> *
> *It can produce output: 3 4 
> *
> *How? Now it's a question? I know it. Tell you sometime letter.
> 
> Couldn't wait for letter , now is better
> One solution would be 
> 
> #include <stdio.h>
> int main()
> {
> 	int i;
> 	i=2;
> 	printf("%d  %d\n",--i,(++i,++i));
> }
> 
> this is really very trivial, very brute-force ?Coming from you, I think that you
> will have a more fundu and elegant solution.
> 
> Regards 
> shourya

--------------------------------------------------------------------
The Linux India Mailing List Archives are now available.  Please search
the archive at http://lists.linux-india.org/ before posting your question
to avoid repetition and save bandwidth.