Friday, January 25, 2008

C prog without a single Semicolon

Yes why not, we can absolutely write a C prog without using a semicolon and having at least one
executable statement.
main()
{

if(printf("hello suriya"))

{
}
}
Another way. (here notice the use of comma operator described in previous post)
main()
{
while(printf("hello suriya"),0)
{
}
}

No comments: