write a c program to print "Welcome" without using semicolon
in the whole program ??

Answers were Sorted based on User's Feedback



write a c program to print "Welcome" without using semicolon in the whole program ?? ..

Answer / vadivelt

main()
{
if(printf("Welcome"))
//Do nothing
}

Is This Answer Correct ?    50 Yes 18 No

write a c program to print "Welcome" without using semicolon in the whole program ?? ..

Answer / sagar

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

Is This Answer Correct ?    30 Yes 10 No

write a c program to print "Welcome" without using semicolon in the whole program ?? ..

Answer / rama krishna sidhartha

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

(OR)

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

Is This Answer Correct ?    13 Yes 5 No

write a c program to print "Welcome" without using semicolon in the whole program ?? ..

Answer / hari

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

for further queries and discussions, just check these out !!!

http://forum.campusmaniac.com/
http://www.campusmaniac.com/

Is This Answer Correct ?    6 Yes 2 No

write a c program to print "Welcome" without using semicolon in the whole program ?? ..

Answer / manoj srivastava

#include<stdio.h>
#include<conio.h>
void main(void)
{
if(printf("welcome"))
{}
}

Is This Answer Correct ?    5 Yes 1 No

write a c program to print "Welcome" without using semicolon in the whole program ?? ..

Answer / mani

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

Is This Answer Correct ?    7 Yes 4 No

write a c program to print "Welcome" without using semicolon in the whole program ?? ..

Answer / sagar

try your self to run the above program then it wouldn't
display but then press (alt+F5) then u would get the
correct display
and....
its not possible with while loop ....

Is This Answer Correct ?    8 Yes 6 No

write a c program to print "Welcome" without using semicolon in the whole program ?? ..

Answer / peanut64

//C++
#include <iostream>
using namespace std;

void main()
{
while((cout<<"hello"<<endl)==false)
{
}

}

//c
#include <stdio.h>

void main()
{
while(printf("Hello")==false)
{
}

}

[My lecturer asked me this question. The above solution
works for me]

Is This Answer Correct ?    2 Yes 0 No

write a c program to print "Welcome" without using semicolon in the whole program ?? ..

Answer / kayalvizhi.s

#include<stdio.h>
{
main()
while(printf("welcome"))
}

Is This Answer Correct ?    2 Yes 0 No

write a c program to print "Welcome" without using semicolon in the whole program ?? ..

Answer / sandip kundu

#include<stdio.h>
#include<conio.h>
void main()
{
if(printf ("hi"))
getch();
}

Is This Answer Correct ?    2 Yes 2 No

Post New Answer

More C Interview Questions

What is meant by 'bit masking'?

0 Answers  


what is a c-language.what is do.

4 Answers   HCL,


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

0 Answers  


What is the difference between scanf and fscanf?

0 Answers  


Tell me what is null pointer in c?

0 Answers  






What is the use of function overloading in C?

0 Answers   Ittiam Systems,


explain what is an endless loop?

0 Answers  


What are the back slash character constants or escape sequence charactersavailable in c?

0 Answers  


write a program to generate address labels using structures?

0 Answers   SJC,


Explain void pointer?

0 Answers  


Explain what does the format %10.2 mean when included in a printf statement?

0 Answers  


What is the difference between realloc() and free()

1 Answers  


Categories