ad

Friday, 14 October 2011

printing program without using any semicolon

/* Write a c program without using any semicolon which output will : Hello word.*/




Solution: 1

void main()
{
if(printf("Hello world")){
}
}

Solution: 2

void main(){
while(!printf("Hello world")){
}
}

Solution: 3

void main(){
switch(printf("Hello world")){
}
}

No comments:

Post a Comment