chapter7
This commit is contained in:
15
DeitelC/Chapter7/test1.c
Normal file
15
DeitelC/Chapter7/test1.c
Normal file
@@ -0,0 +1,15 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main (void)
|
||||
{
|
||||
int x = 5;
|
||||
int *ptr = &x;
|
||||
int a = ++*ptr;
|
||||
printf("*ptr++ %d\n", a);
|
||||
printf("++ptr %d\n", ++ptr);
|
||||
|
||||
void *vptr = &x;
|
||||
printf("void ptr %d\n", vptr);
|
||||
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user