Synopsis: | Don't increment (decrement) a pointer to a function. |
Language: | C |
Severity Level: | 2 |
Category: | Expressions |
Description: |
The increment and decrement operators are not valid for pointers to functions. See the StackOverflow reference for more details. For instance: function_ptr++; /* WRONG */ |
Literature References: |
StackOverflow |