Sequence Points (C/C++)

Learn or Teach General Knowledge Related to Coding or Hacking

Moderators: g3nuin3, SpeedWing, WhiteHat, mezzo

Postby Noname » Sat Jul 19, 2008 9:08 am

I knew the difference between pre-fix and post-fix but the C90 Thing was awesome. I have never thought about the IEEE Standards ( even though I am a member) I had to right a report on Java the the failure to comply with some floating point spec.
Noname
Hackleberry Fin
 
Posts: 22
Joined: Sun Jul 13, 2008 4:24 am

Postby lxcid » Wed Jan 21, 2009 1:04 am

Wow, I had a hard time understanding and I have to say I never knew about that.

I was reading up on sequence point on wiki and found out something interesting.

Code: Select all
INT I = I++;


Would have yield undefined result.

I guess if the same variable is modified more than once between previous and next sequence points, its result will be undefined.

Points taken from wiki. Hope I got it right. :)
lxcid
I Ask A Lot Of Questions
 
Posts: 13
Joined: Tue Jan 20, 2009 2:07 am

Postby devsed » Fri Jan 30, 2009 3:48 am

Code: Select all
INT J = 9;
INT I = 1;
INT I = (((++J) + (J++)) + J++) + I++;


Has anyone come across code this unconventional?

If so, where?
your answers = `head /dev/urandom`
devsed
I Have A Few Questions
 
Posts: 8
Joined: Thu Jan 29, 2009 1:35 am

Postby L. Spiro » Fri Jan 30, 2009 7:56 am

I certainly hope not.


L. Spiro
Our songs remind you of songs you’ve never heard.
User avatar
L. Spiro
L. Spiro
 
Posts: 3129
Joined: Mon Jul 17, 2006 10:14 pm
Location: Tokyo, Japan

Postby xxxav » Fri May 08, 2009 7:26 am

so you developed a sort of "cross breed" of C++ language?
xxxav
Acker
 
Posts: 55
Joined: Wed Apr 16, 2008 10:34 am

Postby L. Spiro » Fri May 08, 2009 8:06 am

This section is not related to L. Spiro Script.

As for your question, L. Spiro Script is similar to C so that people can use it without having to learn a new language.
But C has a lot of retarded faults upon which C++ improves, so in some places I used the C++ methods rather than the C methods.


L. Spiro
Our songs remind you of songs you’ve never heard.
User avatar
L. Spiro
L. Spiro
 
Posts: 3129
Joined: Mon Jul 17, 2006 10:14 pm
Location: Tokyo, Japan

Previous

Return to Knowledge Base

Who is online

Users browsing this forum: No registered users and 0 guests

cron