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

how to find sum of digits in C?

21 Answers   CTS, Infosys,


How can you tell whether two strings are the same?

0 Answers  


How do you use a pointer to a function?

0 Answers  


plz answer.. a program that takes a string e.g. "345" and returns integer 345

4 Answers  


player is good if the following conditions are satisfied: He is either from “India”, “Japan” or “Korea” He has a minimum of 3 years of experience He has won at least 3 major tournaments, and one of them must be "World Championship Tournament". He must know more than 10 techniques. (but see next question) If he knows less than 10 techniques, then he must be a world champion. His name contains at least 3 words. For example "Sachin Tendulkar" will not meet this condition. Write a method: boolean isGoodPlayer(String name, String country, int yearsExperience, String[] majorTournamentsWon, String[] techniques, boolean isWorldChampion) name country yearsExperience majorTournamentsWon techniques isWorldChampion

1 Answers  






difference between spiral and waterfall model

1 Answers  


Explain what is wrong with this statement? Myname = ?robin?;

0 Answers  


Write the test cases for checking a variable having value in range -10.0 to +10.0?

0 Answers   Bosch,


Explain what standard functions are available to manipulate strings?

0 Answers  


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

1 Answers  


What does the characters “r” and “w” mean when writing programs that will make use of files?

0 Answers  


What are the two types of structure?

0 Answers  


Categories