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

Answer Posted / jaya prakash

int main()
{

if(printf("Hello"))
{
//Null statement
}

}

Is This Answer Correct ?    51 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I get an accurate error status return from system on ms-dos?

641


Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1

3651


Is c compiled or interpreted?

659


What are shell structures used for?

595


write a C program:There is a mobile keypad with numbers 0-9 and alphabets on it. Take input 0f 7 keys and then form a word from the alphabets present on the keys.

14955






What do you mean by command line argument?

636


What are the modifiers available in c programming language?

730


What is difference between array and pointer in c?

534


Explain do array subscripts always start with zero?

753


what are bit fields? What is the use of bit fields in a structure declaration?

1497


What are types of preprocessor in c?

613


How do you list files in a directory?

559


Why c is a procedural language?

578


What is structure of c program?

599


Write the Program to reverse a string using pointers.

613