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

Why is sprintf unsafe?

0 Answers  


Write a function that accepts two numbers,say a and b and makes bth bit of a to 0.No other bits of a should get changed.

2 Answers   Scientific Atlanta, Wipro,


how to find turn around time in operating system?

3 Answers  


Can a variable be both const and volatile?

0 Answers  


f(*p) { p=(char *)malloc(6); p="hello"; return; } main() { char *p="bye"; f(p); printf("%s",p); } what is the o/p?

7 Answers   Hughes,






The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration

0 Answers  


What is cohesion and coupling in c?

0 Answers  


how to find the sizof of any datatype using bit manipulations

3 Answers  


What is void c?

0 Answers  


What are keywords in c with examples?

0 Answers  


any "C" function by default returns an a) int value b) float value c) char value d) a & b

0 Answers  


Why n++ execute faster than n+1 ?

2 Answers  


Categories