How can I make a program in c to print 'Hello' without
using semicolon in the code?

Answer Posted / manjushree

#include<stdio.h>
#include<conio.h>
int main()
{
if(printf("Hello"))
{

}
getch();
}

// if u use while loop it goes for an infinite loop , so
better to use if condition

Is This Answer Correct ?    12 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the scope of static variables in c language?

628


How can you draw circles in C?

625


What functions are in conio h?

659


What is variable and explain rules to declare variable in c?

555


can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......

1411






How to write a code for reverse of string without using string functions?

1580


What is extern c used for?

571


Why void is used in c?

566


Can math operations be performed on a void pointer?

587


When c language was developed?

640


What is the difference between scanf and fscanf?

664


Is swift based on c?

638


What is ## preprocessor operator in c?

613


What are the data types present in c?

629


void main(){ int a; a=1; while(a-->=1) while(a-->=0); printf("%d",a); }

1260