473,383 Members | 1,853 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

sequence points

what are sequence points in c
any pointers to some resource which explains them in detail will be of
much help...
Thanks in advance
kind regards
Rahul

Oct 12 '06 #1
18 3285
ra*******************@gmail.com said:
what are sequence points in c
They are points within your program at which it is guaranteed that
everything that should have happened (and in particular all the side
effects) up till this point /has/ happened (or won't ever happen!). You get
them at the end of expression statements, and at various other places as
well.
any pointers to some resource which explains them in detail will be of
much help...
See "C: A Reference Manual", by Harbison & Steele. My 4th edition carries a
reasonable explanation on p83, and again on pages 228-229.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Oct 12 '06 #2
ra*******************@gmail.com wrote:
what are sequence points in c
any pointers to some resource which explains them in detail will be of
much help...
Thanks in advance
kind regards
Rahul
http://en.wikipedia.org/wiki/Sequence_point

Google is your friend.

Tejas Kokje
Oct 12 '06 #3


On Oct 12, 2:13 pm, Richard Heathfield <inva...@invalid.invalid>
wrote:
any pointers to some resource which explains them in detail will be of
much help...See "C: A Reference Manual", by Harbison & Steele. My 4th edition carries a
reasonable explanation on p83, and again on pages 228-229.
Your book "C Unleashed"? I like it very much. Thanks! ;-)

Oct 12 '06 #4
Cong Wang said:
>

On Oct 12, 2:13 pm, Richard Heathfield <inva...@invalid.invalid>
wrote:
any pointers to some resource which explains them in detail will be of
much help...See "C: A Reference Manual", by Harbison & Steele. My 4th
edition carries a
reasonable explanation on p83, and again on pages 228-229.

Your book "C Unleashed"? I like it very much. Thanks! ;-)
You're welcome. I'm glad you're enjoying it.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Oct 12 '06 #5
Richard Heathfield <in*****@invalid.invalidwrote:

("them" equals "sequence points")
any pointers to some resource which explains them in detail will be of
much help...
See "C: A Reference Manual", by Harbison & Steele. My 4th edition carries a
reasonable explanation on p83, and again on pages 228-229.
Or, alternatively, OP can get the "from the horse's mouth" explanation
from 5.1.2.3, subparagraph 2, in the draft n869 standard. (OP can,
presumably, use Google to locate this document.)

--
C. Benson Manica | I *should* know what I'm talking about - if I
cbmanica(at)gmail.com | don't, I need to know. Flames welcome.
Oct 12 '06 #6
Christopher Benson-Manica said:
Richard Heathfield <in*****@invalid.invalidwrote:
>See "C: A Reference Manual", by Harbison & Steele. My 4th edition carries
a reasonable explanation on p83, and again on pages 228-229.

Or, alternatively, OP can get the "from the horse's mouth" explanation
from 5.1.2.3, subparagraph 2, in the draft n869 standard. (OP can,
presumably, use Google to locate this document.)
Yes, but ISO Standards tend to make lousy tutorials. :-)

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Oct 12 '06 #7
In article <_o******************************@bt.com>,
Richard Heathfield <in*****@invalid.invalidwrote:
>Yes, but ISO Standards tend to make lousy tutorials. :-)
I've always found ISO 8859-1 quite understandable.

-- Richard
Oct 12 '06 #8
Christopher Benson-Manica wrote:
Richard Heathfield <in*****@invalid.invalidwrote:

("them" equals "sequence points")
>>any pointers to some resource which explains them in detail will be of
much help...
>See "C: A Reference Manual", by Harbison & Steele. My 4th edition carries a
reasonable explanation on p83, and again on pages 228-229.

Or, alternatively, OP can get the "from the horse's mouth" explanation
from 5.1.2.3, subparagraph 2, in the draft n869 standard. (OP can,
presumably, use Google to locate this document.)
There is now a link to a copy of it on the CLC wiki. I used the way back
machine to find Dan Pop's copy and uploaded it to my site. If Dan
objects (which I think is unlikely) I can remove it. Links to that and
other versions of the standard are here http://clc-wiki.net/wiki/c_standard

P.S. Anyone know how Dan is doing?
--
Flash Gordon
Hosting the CLC Wiki on an actively maintained server as a repayment for
all I've learnt here.
All contributions to the Wiki are welcome.
Oct 12 '06 #9
Richard Heathfield wrote:
Christopher Benson-Manica said:
>Richard Heathfield <in*****@invalid.invalidwrote:
>>See "C: A Reference Manual", by Harbison & Steele. My 4th edition
carries a reasonable explanation on p83, and again on pages 228-229.

Or, alternatively, OP can get the "from the horse's mouth" explanation
from 5.1.2.3, subparagraph 2, in the draft n869 standard. (OP can,
presumably, use Google to locate this document.)

Yes, but ISO Standards tend to make lousy tutorials. :-)
Where is Dan Pop when you need him? :-)

--
Some informative links:
<news:news.announce.newusers
<http://www.geocities.com/nnqweb/>
<http://www.catb.org/~esr/faqs/smart-questions.html>
<http://www.caliburn.nl/topposting.html>
<http://www.netmeister.org/news/learn2quote.html>
<http://cfaj.freeshell.org/google/>
Oct 13 '06 #10
Flash Gordon wrote:
>
.... snip ...
>
P.S. Anyone know how Dan is doing?
I've asked a few times and heard zip-a-dee-doo-dah. Seems ominous.

--
Some informative links:
<news:news.announce.newusers
<http://www.geocities.com/nnqweb/>
<http://www.catb.org/~esr/faqs/smart-questions.html>
<http://www.caliburn.nl/topposting.html>
<http://www.netmeister.org/news/learn2quote.html>
<http://cfaj.freeshell.org/google/>
Oct 13 '06 #11
CBFalconer wrote:
Richard Heathfield wrote:
>>Christopher Benson-Manica said:
>>>Richard Heathfield <in*****@invalid.invalidwrote:
See "C: A Reference Manual", by Harbison & Steele. My 4th edition
carries a reasonable explanation on p83, and again on pages 228-229.

Or, alternatively, OP can get the "from the horse's mouth" explanation
from 5.1.2.3, subparagraph 2, in the draft n869 standard. (OP can,
presumably, use Google to locate this document.)

Yes, but ISO Standards tend to make lousy tutorials. :-)


Where is Dan Pop when you need him? :-)
Writing a blistering critique of people who don't understand
Section 8.

--
Eric Sosman
es*****@acm-dot-org.invalid
Oct 13 '06 #12
CBFalconer said:
Flash Gordon wrote:
>>
... snip ...
>>
P.S. Anyone know how Dan is doing?

I've asked a few times and heard zip-a-dee-doo-dah. Seems ominous.
Nah.

Lawrence dropped out for a couple of years, then popped up out of nowhere
for a few months, and has since vanished again. (I hope he'll be back
soon.) I dropped out for well over a year, and then re-materialised. Chris
D disappeared for a while, but has returned. We hardly ever see Steve
nowadays, but just occasionally, he sticks his head round the door to see
what's going on.

It happens. I'm sure Dan is fine.

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)
Oct 13 '06 #13
CBFalconer wrote:
>
Flash Gordon wrote:
... snip ...

P.S. Anyone know how Dan is doing?

I've asked a few times and heard zip-a-dee-doo-dah. Seems ominous.
*** Error 341: "zip-a-dee-doo-dah" is not a valid C identifier. ;-)

--
+----------------------------------------------------------------+
| Charles and Francis Richmond richmond at plano dot net |
+----------------------------------------------------------------+
Oct 13 '06 #14
CBFalconer wrote:
>
Flash Gordon wrote:
... snip ...

P.S. Anyone know how Dan is doing?

I've asked a few times and heard zip-a-dee-doo-dah. Seems ominous.
I've been considering starting a rumor of his death.

--
pete
Oct 14 '06 #15
Charles Richmond <ri******@comcast.netwrites:
CBFalconer wrote:
>Flash Gordon wrote:
>
... snip ...
>
P.S. Anyone know how Dan is doing?

I've asked a few times and heard zip-a-dee-doo-dah. Seems ominous.
*** Error 341: "zip-a-dee-doo-dah" is not a valid C identifier. ;-)
But it's a valid C expression, assuming appropriate declarations for
zip, a, dee, doo, and dah.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Oct 14 '06 #16
pete <pf*****@mindspring.comwrites:
CBFalconer wrote:
>>
Flash Gordon wrote:
>
... snip ...
>
P.S. Anyone know how Dan is doing?

I've asked a few times and heard zip-a-dee-doo-dah. Seems ominous.

I've been considering starting a rumor of his death.
Long may it be greatly exaggerated.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
Oct 14 '06 #17
On 12 Oct 2006 22:49:53 GMT, ri*****@cogsci.ed.ac.uk (Richard Tobin)
wrote:
In article <_o******************************@bt.com>,
Richard Heathfield <in*****@invalid.invalidwrote:
Yes, but ISO Standards tend to make lousy tutorials. :-)

I've always found ISO 8859-1 quite understandable.
And it might make good drama too; after all ...

..

..

..

..

..

..

it has a fine cast of characters.

Sorry, I couldn't resist.

- David.Thompson1 at worldnet.att.net
Oct 23 '06 #18
Dave Thompson <da*************@worldnet.att.netwrote:
[about the C Standard]
>
And it might make good drama too; after all ...
[...]
it has a fine cast of characters.
But not much plot -- I think that was left to a graphics standards
committee.

-Larry Jones

I think if Santa is going to judge my behavior over the last year,
I ought to be entitled to legal representation. -- Calvin
Oct 23 '06 #19

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Dave Theese | last post by:
Hello all, I have read the definition of a sequence point in the standard and can follow it mechanically, but for some reason, I'm having a hard time grasping the conceptual meaning and...
3
by: Sensorflo | last post by:
After browsing though many newsgroups articels I'm still not shure how operator precedence, operator associativity, sequence points, side effects go together. Currently I have the following view: ...
4
by: Timothy Madden | last post by:
Hello I've read a long time ago in the MSDN that C++ language defines no sequence points Now I read in the 1998 ISO standard a small list of sequence points in C++ Does C++ defines sequence...
53
by: Deniz Bahar | last post by:
I know the basic definition of a sequence point (point where all side effects guaranteed to be finished), but I am confused about this statement: "Between the previous and next sequence point an...
7
by: akarl | last post by:
Hi all, Why do I get a warning from gcc with the following program? $ cat test.c #include <stdio.h> int f(int n) { return n;
9
by: John Smith | last post by:
I've been playing with splint, which returns the following warning for the code below: statlib.c: (in function log_norm_pdf) statlib.c(1054,31): Expression has undefined behavior (left operand...
1
by: lovecreatesbea... | last post by:
---quoting--- Annex C (informative) Sequence points 1 The following are the sequence points described in 5.1.2.3: - The end of a full expression: an initializer (6.7.8); the expression in an...
4
by: Daniel Kraft | last post by:
Hi all! I do not have a standard-document right next to me to cite from, but as far as I know, doing something like: a()=b()=c()=d(); or foo(d()+c()+b()+a()); has a fixed evaluation order...
3
by: joe | last post by:
Consider the following program: include <iostream> class Bar { public: int getData9() { m_data = 9; return m_data;} int getData11() { m_data = 11; return m_data;} int m_data;
7
by: Jrdman | last post by:
hi According to the standard these are how we define sequence points: *the call to a function ,after the arguments have been evaluated *the end of the first operand of the following...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.