Answered by:
c (program without semi colon )

Question
-
can some one tell me how to print a text in cprogram without a semicolonSaturday, September 15, 2007 4:38 AM
Answers
-
you can try out using a while loop as
while(!(printf("hello world"))
thats it
cheers
nanaSaturday, September 15, 2007 4:44 AM
All replies
-
you can try out using a while loop as
while(!(printf("hello world"))
thats it
cheers
nanaSaturday, September 15, 2007 4:44 AM -
int main()
{
if(printf("\n Hello World"))
retur 0;
}
This will also workSaturday, September 15, 2007 12:50 PM -
Well budy your code is containing a ";"
and brother
Code Snippetwhile(!printf("Hello"))
you forgot to add the braces...
so this will work
Code Snippetwhile(!printf("Hello")) { }
Saturday, September 15, 2007 3:27 PM -
bo_boys_c80f0f wrote: can some one tell me how to print a text in cprogram without a semicolon
y u want to print without semicolon..
using while, for and if are good option to do it.Tuesday, September 18, 2007 5:43 AM -
#include<stdio.h>
int main()
{
if(printf("I'm printed without using a semicolon!"))
{
}
}Tuesday, September 18, 2007 2:35 PM