diff options
Diffstat (limited to 'Semestr 4/ask/lista8/swap.c')
-rw-r--r-- | Semestr 4/ask/lista8/swap.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/Semestr 4/ask/lista8/swap.c b/Semestr 4/ask/lista8/swap.c deleted file mode 100644 index e1966fd..0000000 --- a/Semestr 4/ask/lista8/swap.c +++ /dev/null @@ -1,18 +0,0 @@ -extern int buf[]; - -int *bufp0 = &buf[0]; -static int *bufp1; - -static void incr() { - static int count = 0; - count++; -} - -void swap() { - int temp; - incr(); - bufp1 = &buf[1]; - temp = *bufp0; - *bufp0 = *bufp1; - *bufp1 = temp; -} |