View Feed
Coffee Room
Discuss anything here - everything that you wish to discuss with fellow engineers.
12913 Members
Join this group to post and comment.

C code: smiley o/p

Here is the code and the output.
I don't understand why the output is a smiley.
Can someone explain?

void main()
char *s="hello world";
printf("%.*s", *s);

Share this content on your social channels -