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

Answers were Sorted based on User's Feedback



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

Answer / jaya prakash

int main()
{

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

}

Is This Answer Correct ?    51 Yes 3 No

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

Answer / prashanth

main()
{

if(printf("hello"))

}

Is This Answer Correct ?    54 Yes 9 No

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

Answer / madhu

int main()
{
if(printf("Hello"))
{

}
}

Answer 2nd is correct;

Is This Answer Correct ?    23 Yes 1 No

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

Answer / akash dibya

{
if(printf("Hello"))
{
\*blank*\
}
}

Is This Answer Correct ?    18 Yes 1 No

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

Answer / 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

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

Answer / mukul

main()
{
if( (printf("hello"))
}

Is This Answer Correct ?    11 Yes 4 No

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

Answer / arvind kumar

int main()
{
while(printf("Arvind kumar C-DAC"))
{

}
return 0;

}

Is This Answer Correct ?    8 Yes 4 No

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

Answer / shabeer basha

#include<stdio.h>
#include<conio.h>
void main()
{
if(printf("Hellow"))
{
}
}
// you are use semicolon in your program//

Is This Answer Correct ?    5 Yes 1 No

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

Answer / rosaiah

int main()
{
if(printf("hello"))
{
\* blank*\
}
}

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More C Interview Questions

How do you declare a variable that will hold string values?

0 Answers  


#include<stdio.h> int main() { int i=0,j=1,k=2,m,n=0; m=i++&&j++&&k++||n++; printf("%d,%d,%d,%d,%d",i,j,k,m,n); }

12 Answers   Capital IQ, Sasken,


4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.

0 Answers   TCS,


How do we select the big element or any other operation from array which is read dynamically. user need to give the elements only no need to mention the size.

0 Answers  


what is the difference between auto and static keywords

1 Answers   cDot, College School Exams Tests, TCS,






What is fflush() function?

0 Answers  


Explain the properties of union. What is the size of a union variable

0 Answers  


What is self-referential structure in c programming?

0 Answers  


write the output of following code .. main() { static int a[]={10,20,30,40,50}; int *ptr=a; static int arr[2][2]={1,2,3,4}; char str[]="ABCD * 4#"; char *s=str+2; int i,j; for(i=0;i<5,i++) printf("%d",*ptr++); for(i=0;i<2;i++) for(j=0;j<2;j++) printf("%d\n",*(*(n+i)+j)); printf("%c\n%c\n%c\n",*(str+2),*s++,*--s); }

1 Answers  


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

0 Answers   Google, Infosys,


write a program to check whether a given integer is a strong number or not? [Hint: 145=1!+4!+5! =1+24+120 =145]

7 Answers   Calsoft,


why division operator not work in case of float constant?

2 Answers  


Categories