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<conio.h>
#include<stdio.h>
void main( )
{
If(cout<<"I can Do this")
{ }
} //main ends
No comments:
Post a Comment