C
This commit is contained in:
15
learnc/learnc8.c
Executable file
15
learnc/learnc8.c
Executable file
@ -0,0 +1,15 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
int n = 10;
|
||||
|
||||
int * pointer_to_n = &n;
|
||||
n += 1;
|
||||
|
||||
/* testing code */
|
||||
if (pointer_to_n != &n) return 1;
|
||||
if (*pointer_to_n != 11) return 1;
|
||||
|
||||
printf("Done!\n");
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user