Sunday, 29 July 2012

How to write a C++ Program Without any ; semicolon

To write a c++ or C Program without ; (semicolon) , is it can be possible, (Because most of the c++ or c Program syntax ends with ; ), so it seems to be impossible, But it is possible.
Here We write the program without any semicolon(;). compile this it will show no Error.
We have put the curly braces after if statement because after if statement , if it is true it run the next statement. and We put cout statement in If condition to execute it without ; semicolon.
If you have Any queries please comment.


#include<iostream.h>
#include<conio.h>
#include<stdio.h>

void main( )
{

          If(cout<<"I can Do this") 
             {  }


}    //main ends


No comments:

Post a Comment

This Blog is not managed by anyone, If you are interested then Contact me avinashkgec@gmail.com

Related Post