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 |
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
Difference between pass by reference and pass by value?
a=0; while(a<5) printf("%d\n",a++); how many times does the loop occurs? a.infinite b.5 c.4 d.6
#include <stdio.h> int main() { if ("X" <"x") printf("X smaller than x "); } my question is whats the mistake in this program? find it and please tell me..
what is the advantage of function pointer
16 Answers CMC, CS, Freshdesk, L&T, LG Soft, Matrix, TCS,
print the pattern 1 2 4 3 6 9 4 8 12 16 5 10 15 20 25 if n=5
How to find the digits truncation when assigning the interger variable to the character variables. like int i=500; char x = i : here we have truncation. how to find this. another ex: i =100; char x=i. here we do not have truncation.
Tell me when would you use a pointer to a function?
What is a program flowchart and explain how does it help in writing a program?
Why isn't any of this standardized in c? Any real program has to do some of these things.
what is the difference between arrays and linked list
26 Answers MAHINDRA, Tech Mahindra, Wipro,
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above