Moved cond.c to folder LC21

This commit is contained in:
Louise Brown
2023-09-26 17:05:15 +01:00
parent fefda4652a
commit 3ed2a4276c
4 changed files with 74 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#include <stdio.h>
#include <assert.h>
int main()
{
int x = 7;
/* Some big code in between and let's say x
       is accidentally changed to 9 */
x = 9;
// Programmer assumes x to be 7 in rest of the code
assert(x==7);
/* Rest of the code */
return 0;
}