Monday, February 17, 2014

program to print something without a semicolon

I am gonna write a program to print some thing without using any semicolon it is very easy to write such a program like this. I am gonna write a program in the c language

#include<stdio.h>
void main()
{
if(printf("whatever you want to write ,write here"))
{
}
}
this is the program to print without a semicolon. this program works in this way

if is a just a condition checker to weather the given condition is right or wrong,so in this program its gonna check weather statement is printed or not ,when the time it gonna check , the statement which we are giving is getting printed, actually its gonna printed and if condition satisfied ,the program terminates , if does not satisfy the program also terminates.
               
                           may be we cant see the printing statement because its very fast make us unable to see

No comments:

Post a Comment