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

main() { int a[10]; printf("%d",*a+1-*a+3); }

2 Answers  


How do you determine a file’s attributes?

0 Answers  


how to add two numbers without using arithmetic operators?

4 Answers  


How to draw the flowchart for structure programs?

0 Answers  


In the DOS enveronment, normal RAM that resides beyond the 1mb mark. a) expanded memory b) swapped memory c) Extended memory d) none

0 Answers  






What is macro?

5 Answers   IBM,


what is the difference between north western polytechnique university and your applied colleges?? please give ur answers for this. :)

0 Answers  


How to write c functions that modify head pointer of a linked list?

0 Answers  


how to set Nth bit of a variable?

1 Answers  


Write a c program to print the sizes and ranges of different data types in c?

1 Answers  


Which of the following is not an infinite loop ? a.while(1){ .... } b.for(;;){ ... } c.x=0; do{ /*x unaltered within theloop*/ ... }while(x==0); d.# define TRUE 0 ... while(TRUE){ .... }

7 Answers   TCS,


what is the function of pragma directive in c?

0 Answers  


Categories