[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
[LI] Am I close ??
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
--
_______________________________________________________________
Shourya Sarcar <sarcar@xxxxxxxx> <Tel:91-033-4710477>
Department of Computer Science and Engineering
Jadavpur University Calcutta, India 700 032
All the world's a stage..
And I am acting tonight
C - the difference : http://www.eskimo.com/~scs/C-faq/top.html
--------------------------------------------------------------------
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.