1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include <stdio.h> main() { int counter; /* loop counter */ for (counter = 0; counter < 3; counter++) { int temporary = 1; static int permanent = 1; (void)printf("Temporary %d Permanent %d\n", temporary, permanent); temporary++; permanent++; } return (0); }