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

consider the following C code main() { int i=3,x; while(i>0) { x=func(i); i--; } int func(int n) { static sum=0; sum=sum+n; return(sum); } the final value of x is

4 Answers   TCS,


Write a program to print factorial of given number without using recursion?

0 Answers  


explain what is a newline escape sequence?

0 Answers  


Explain what is operator promotion?

0 Answers  


What is pragma c?

0 Answers  


Can we replace the struct function in tree syntax with a union?

0 Answers   Huawei,


How to write a code for implementing my own printf() and scanf().... Please hep me in this... I need a guidance... Can you give an coding for c... Please also explain about the header files used other than #include<stdio.h>...

0 Answers  


Find the output? void main() {float a=2.0; printf("\nSize of a ::%d",sizeof(a)); printf("\nSize of 2.0 ::%d",sizeof(2.0));}

11 Answers   IBM, TCS,


Compare array data type to pointer data type

0 Answers  


Explain how do you search data in a data file using random access method?

0 Answers  


Can we declare function inside main?

0 Answers  


What is calloc in c?

0 Answers  


Categories