Search found 4 matches
- Mon Mar 15, 2004 2:11 am
- Forum: C
- Topic: C strange..
- Replies: 8
- Views: 4459
- Thu Mar 11, 2004 6:24 am
- Forum: C
- Topic: C strange..
- Replies: 8
- Views: 4459
- 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.??
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.??
- 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 ...
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 ...