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

Can you please compare array with pointer?

611


Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.

1563


How to write a multi-statement macro?

616


what will be maximum number of comparisons when number of elements are given?

1406


Given an array of 1s and 0s arrange the 1s together and 0s together in a single scan of the array. Optimize the boundary conditions?

974






Simplify the program segment if X = B then C ← true else C ← false

2578


What is local and global variable in c?

612


What do you mean by dynamic memory allocation in c? What functions are used?

650


How do you print only part of a string?

606


What is the size of structure in c?

697


Explain 'bus error'?

555


hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell

1666


write a c program to calculate sum of digits till it reduces to a single digit using recursion

2716


What is the data segment that is followed by c?

604


When c language was developed?

633