What's a "sequence point"?

Answers were Sorted based on User's Feedback



What's a "sequence point"?..

Answer / sujith

A sequence point defines any point in a program's execution
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.

Is This Answer Correct ?    7 Yes 0 No

What's a "sequence point"?..

Answer / guest

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.

Is This Answer Correct ?    1 Yes 0 No

What's a "sequence point"?..

Answer / varshil shah

A sequence point in imperative programming defines any point
in a computer program's execution 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. 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
subexpressions. Adding one or more sequence points is one
method of ensuring a consistent result, because this
restricts the possible orders of evaluation.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

Explain what does the function toupper() do?

0 Answers  


How is actual parameter different from the formal parameter?

0 Answers  


Write a program in c using only loops to print * * * * * *******

2 Answers   IBM,


Find the O/p of the following struct node { char *name; int num; }; int main() { struct node s1={"Harry",1331}; struct node s2=s1; if(s1==s2) printf("Same"); else printf("Diff"); }

1 Answers  


What is the value of y in the following code? x=7;y=0; if(x=6) y=7; else y=1;

12 Answers   TCS,






Write a program for deleting duplicate elements in an array

3 Answers   Subex,


What is sorting in c plus plus?

0 Answers  


write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.

0 Answers   Subex,


write a program structure to find average of given number

1 Answers  


Differentiate between static and dynamic modeling.

0 Answers   Wipro,


How do I use strcmp?

0 Answers  


What is NULL pointer?

0 Answers   Infosys,


Categories