Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- void func(char a, char *b)
- {
- *b = a;
- }
- int main()
- {
- char a = 'a';
- char *b;
- func(a, &b);
- printf("output: %c\n", b);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement