this can be done in the part of syntax which is free from bound of semicolons and these are IF-ELSE statements and LOOPS. It means that you can write your printf statement in these parts.
EXAMPLE:
#include<stdio.h>
#include<conio.h>
void main()
{
if(!printf("Without Semicolons ? Piece of Cake %c\n",2))
getch();
}
Same thing can be done with WHILE LOOP
#include<stdio.h>
#include<conio.h>
void main()
{
while(!printf("Without Semicolons ? Piece of Cake %c\n",2))
getch();
}
Post a Comment