PRIYADHARSHINI ARIVALAHAN
PRIYADHARSHINI ARIVALAHAN
Branch Unspecified
06 Mar 2017

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<stdio.h>
#include<conio.h>
void main()
{
char *s="hello world";
clrscr();
printf("%.*s", *s);
getch();
}

Be the first one to reply

Share this content on your social channels -

Only logged in users can reply.