some-usable-scripts/c/old/exoPointeurs.c

15 lines
279 B
C
Raw Normal View History

2011-02-03 13:47:29 +01:00
/* manipulation de pointeurs */
#include <stdio.h>
main()
{
char *c[] = { "ENTER","NEW","POINT","FIRST" };
char **cp[] = { c+3, c+2, c+1, c };
char ***cpp = cp;
printf("\n%s", **++cpp );
printf("%s ", *--*++cpp + 3 );
printf("%s\n", *cpp[-2] + 3 );
}