Tuesday, August 9, 2011

Coding Puzzle No. 4?

#include<stdio.h>

void main()
{
         char s[]="four";
         printf("%d\n",printf("%s",s));
}







Output:
four4


ConCept:
Printf functions returns the no. of bytes printed, in this case it's 4.

No comments:

Post a Comment