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

Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.

0 Answers  


write a program to find the largest and second largest integer from an array

2 Answers   Value Labs,


What is a function simple definition?

0 Answers  


How to write a code for random pick from 1-1000 numbers? The output should contain the 10 numbers from the range 1-1000 which should pick randomly, ie ,for each time we run the code we should get different outputs.

12 Answers   NetApp,


hi send me sample aptitude papers of cts?

0 Answers  






Can we include one C program into another C program if yes how?

7 Answers   Infosys,


What is variables in c?

0 Answers  


find the output of the following program main() { int x=5, *p; p=&x; printf("%d",++*p); }

10 Answers   Amdocs, TCS,


main() { enum{red,green,blue=6,white}; pf("%d%d%d%d", red,green,blue,white); return 0; } a)0 1 6 2 b)0 1 6 7 c)Compilation error d)None of the above

6 Answers  


please give me a VIRTUSA sample palcement papers.... you will only send TECHNICAL SECTION..... that is help for me Advance Thanks........................

0 Answers  


what is the output of the following program? #include<stdio.h> void main() { int x=4,y=3,z; z=x-- -y; printf("\n%d %d %d",x,y,z); }

14 Answers  


what is different between auto and local static? why should we use local static?

0 Answers  


Categories