Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include <stdlib.h>
- #include <string.h>
- void add_selft(int *a, int b){
- (*a) += b;
- }
- int main() {
- int *a, b = 10;
- (*a) = 5;
- add_selft(a, b);
- printf("%d\n", *a);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment