View Feed
group-icon
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?

#include
#include
void main()
{
char *s="hello world";
clrscr();
printf("%.*s", *s);
getch();
}

Share this content on your social channels -