Side effects and sequence points in C

Introduction

Introduction

static in function means can have side effects.

can use const to prevent side effects

int myfunction (const int * x)

means can’t modify x in function.

concept of "pass by reference" in functions, side effects

can also have side effects if global variables exist

c allows you to put function calls inside if statements. means both won’t necessarily be run

function side effects in c. + happen with pointers