Results 1 to 6 of 6

Thread: what does sequence point means?

  1. #1
    Join Date
    Dec 2009
    Posts
    32

    what does sequence point means?

    Hi All,

    I have one query to discuss with you. I am studying C programming language. In which I am totally getting confused about "sequence point" concept of the C programming. I don't what is the use this 'sequence point' in C programming. If you know anything about "sequence point" , then please let me know the same. Your help would be greatly appreciated.

  2. #2
    Join Date
    May 2008
    Posts
    2,012

    Re: what does sequence point means?

    Modifying the same variable and using its old value for anything other than computing the new value, without a sequence point in between, causes undefined behavior. A sequence point is a point of time in the evaluation of a C expression,where all side effects are guaranteed to have taken place. Sequence point is the Standard's attempt to define when certain sorts of optimization may and may not be permitted to be in effect.

  3. #3
    Join Date
    Apr 2008
    Posts
    2,005

    Re: what does sequence point means?

    A sequence point is nothing but point within a execution of program at which it is guaranteed that all side effects of previous evaluations will have been performed, and no side effects from subsequent evaluations have yet been performed. The point (at the end of a full expression, or at the ||, &&, ?:, or comma operators, or just before a function call) at which all side effects are guaranteed to be complete.

  4. #4
    Join Date
    May 2008
    Posts
    2,297

    Re: what does sequence point means?

    Hello friends,

    The sequence points in C programming include following:
    • The && and || operators,
    • The , (comma) and ?: (conditional) operators,
    • The semicolon at the end of a statement, and

  5. #5
    Join Date
    Oct 2005
    Posts
    2,393

    Re: what does sequence point means?

    A sequence point is point in a computer program's execution at which it is confirmed that all side effects of previous evaluations will have been performed. And there is no side effects from subsequent evaluations have yet been performed. Sequence points also come into play when the same variable is modified more than once. They are often mentioned in reference to C and C++, because the result of some expressions can depend on the order of evaluation of their sub expressions. Adding one or more sequence points is one method of ensuring a consistent result, because this restricts the possible orders of evaluation.

  6. #6
    Join Date
    May 2008
    Posts
    2,389

    Re: what does sequence point means?

    The"sequence points" is an object's value that can be modified only once by an expression. A sequence point is a point of time in the evaluation of a C expression, where all side effects are guaranteed to have taken place. Most importantly, the assignment operators (such as =), the post and pre decrement/increment operators (++ and --), and the comma *separator* in parameter lists are NOT sequence points.

Similar Threads

  1. Don't know about Sequence Containers
    By Sonam Goenka in forum Software Development
    Replies: 5
    Last Post: 09-02-2010, 02:10 PM
  2. make three .bat files run in sequence
    By djgamex in forum Software Development
    Replies: 2
    Last Post: 26-10-2009, 10:49 AM
  3. What Entry Point Not Found Error means in Windows 2000
    By Dharitree in forum Window 2000 Help
    Replies: 1
    Last Post: 14-09-2009, 07:55 AM
  4. How to change boot sequence in Mac OS X
    By McGrawh in forum Operating Systems
    Replies: 3
    Last Post: 22-06-2009, 08:28 PM
  5. Point to Point Connection Issue
    By DALLON in forum Networking & Security
    Replies: 2
    Last Post: 25-10-2008, 03:30 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,568,007.19062 seconds with 17 queries