// C program without a Semicolon.
This can done in three ways but one of them is infinite.(ie, while loop)
Solution:1
#include(stdio.h) // note place '<' & '>' in place of '(' & ')'
void main( )
{
if(printf("Welcome to C"))
{
}
}
Solution:2
void main( )
{
swicth(printf("Welcome to C"))
{
}
}
Solution:3
void main( )
{
while(printf("Welcome to C")) //infinite loop
{
}
}
Friday, October 16, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment