+ 4
How to print a statement without using semicolon at the end of cout statement ?
8 Antworten
+ 4
thanks...
+ 3
if( cout<"your statement" )
{
}
You can use it in while loop to get a statement required number of times.
Hope this helps!!
+ 3
check my codes section I have written a code
+ 3
just include cout statement in if loop u need not put semicolon in this case
+ 3
So, if you print a statement in if statement semicolons will not be printed. Am I right?
+ 3
it will cause error as u can't include semicolon in inside if loop condition
+ 1
@G Hemanth
Can you explain?
0
int main(void)
{
if(printf("your statement"))
{
}
}
the above code works since printf returns number of characters it printed . you can use any function as a condition in if or in loops until they don't return void