Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- void fortune_cookie(char msg[])
- {
- printf ("Message reads: %s\n" , msg);
- printf ("msg occupies %i bytes\n" , sizeof (msg));
- }
- int main(){
- char quote[] = "Cookies make you fat" ;
- fortune_cookie(quote);
- printf("The quote string is stored at: %p\n", quote);
- printf("Message reads: %s\n", quote);
- printf("msg occupies %i bytes\n", sizeof(quote));
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement