Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void increment(int* p) {
- (*p)++;
- }
- void call_increment(const int* p) {
- increment(p);
- }
- int main(void) {
- int x = 7;
- int* p = &x;
- call_increment(p);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement