What will be the output for the given code?

#includestdio.h
int main( )
{
char *str="SOOKSHMAS";
while(*str)
{
putc(*str,stdout);
printf("%c",*str);
str++;
}
return 0;
}



Posted on by