Search found 4 matches

by kenken
Mon Mar 15, 2004 2:11 am
Forum: C
Topic: C strange..
Replies: 8
Views: 4459

ok, i have read the links above...so, now i avoid using the undefined ANSI statement or assignment... thanks everyone...bless you
by kenken
Thu Mar 11, 2004 6:24 am
Forum: C
Topic: C strange..
Replies: 8
Views: 4459

what mean not standard?? is that the two codes are the same?? then why it gives diff output? according to NASI, i think the ouput should be 13, but after printf() fucntion, it changes... strange~! it is bcos of printf()??
by kenken
Thu Mar 11, 2004 4:04 am
Forum: C
Topic: C strange..
Replies: 8
Views: 4459

C strange..

hey there.. anyone know why this strange thing happens? c programming.
i wonder why....


int a = 9, b = 3;
a = a++ + b++;
printf("%d", a);

output: 13

but,

int a =9, b = 3;
printf("%d", a = a++ + b++);

output: 12

why.??
by kenken
Tue Jun 10, 2003 1:57 am
Forum: Volume 1 (100-199)
Topic: 105 - The Skyline Problem
Replies: 160
Views: 51299

105-skyline problem~! COMPILE ERROR!!!

ARGG~~~~i have tried 8 time to submit my code, same result COMPILE ERROR~!~! Could anyone show me where is wrong?

Your program has died with signal 11 (SIGSEGV). Meaning:

Invalid memory reference

Before crash, it ran during 0.000 seconds.


[cpp]@begin_of_source_code
/* @JUDGE_ID: 15906YA 105 C ...

Go to advanced search