This shows you the differences between two versions of the page.
| — |
qna:lab-session:code8 [2024/04/25 11:22] (current) xallos created |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | <code c># | ||
| + | int howManyTimes() { | ||
| + | static int counter = 0; | ||
| + | |||
| + | return ++counter; | ||
| + | } | ||
| + | |||
| + | int main() { | ||
| + | printf(" | ||
| + | printf(" | ||
| + | printf(" | ||
| + | printf(" | ||
| + | printf(" | ||
| + | |||
| + | return 0; | ||
| + | }</ | ||