473,796 Members | 2,677 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
18 3369
Richard Heathfield wrote:
Christopher Benson-Manica said:
>Richard Heathfield <in*****@invali d.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.anno unce.newusers
<http://www.geocities.c om/nnqweb/>
<http://www.catb.org/~esr/faqs/smart-questions.html>
<http://www.caliburn.nl/topposting.html >
<http://www.netmeister. org/news/learn2quote.htm l>
<http://cfaj.freeshell. org/google/>
Oct 13 '06 #11
CBFalconer wrote:
Richard Heathfield wrote:
>>Christopher Benson-Manica said:
>>>Richard Heathfield <in*****@invali d.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******@comca st.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_Keit h) 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*****@mindsp ring.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_Keit h) 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*****@invali d.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.ne t
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
603
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 significance. Can someone out there offer good intuition on sequence points??? Thank you! Dave
3
2390
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: An expression a = b() + c() * d++; can be transformed with the rules of operator associativity and operator precedence into a tree
4
1670
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 points ? It really should if anyone asks me ... Thank you Timothy Madden
53
4100
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 object shall have its stored value modified at most once by the evaluation of an expression. Furthermore, the prior value shall be accessed only to determine the value to be stored." Can someone give me examples of expressions that "barely"...
7
2083
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
2511
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 uses errno, modified by right operand): (log(x) - mu) * (log(x) - mu) Code has unspecified behavior. Order of evaluation of function parameters or subexpressions is not defined, so if a value is used and
1
2893
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 expression statement (6.8.3); ... ---quoting ends--- What does a full expression exactly mean?
4
1791
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 (right-to-left in the first case and
3
1688
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
215
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 operators : {logical AND :&&
0
9530
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10459
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10017
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7552
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6793
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5445
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5577
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4120
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2928
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.