What's a "sequence point"?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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
Write a program to print factorial of given number without using recursion?
explain what is a newline escape sequence?
Explain what is operator promotion?
What is pragma c?
Can we replace the struct function in tree syntax with a union?
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>...
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
Explain how do you search data in a data file using random access method?
Can we declare function inside main?
What is calloc in c?