Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <string.h>
- #include <stdio.h>
- void my_func(char buf[25])
- {
- printf("Sizeof(1): %d\n", sizeof(buf));
- }
- void my_func2(char *buf)
- {
- printf("Sizeof(2): %d\n", sizeof(buf));
- }
- int main(void)
- {
- char buf[25];
- my_func(buf);
- my_func2(buf);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement