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

write an algorithm to get a sentence and reverse it in the following format: input : I am here opuput: Here Am I note: first letter of every word is capiatlised

3 Answers  


What is the g value paradox?

0 Answers  


what is the significance of static storage class specifier?

0 Answers  


1 1 12 21 123 321 12344231 how i creat it with for loop??

1 Answers  


What is getch () for?

0 Answers  






What is sizeof array?

0 Answers  


What is typedef?

1 Answers  


Please write the area of a RIGHT ANGLED TRIANGLE.

1 Answers  


How can we see the Expanded source code and compiled code for our source program in C?

1 Answers  


what is the differance between pass by reference and pass by value.

7 Answers   Infosys,


please help me.. how to write a code of this output?? "Enter range number:"10 1 is an odd number 2 is an even numbers 3 in an odd numbers 4 " to 10" "printing all odd numbers:" 1,3,5,7,9 "printing all even numbers:" 2,4,6,8,10 "sum of all odd numbers:25 "sum of all even numbers:30 using a C Programming ARRAY pleas pleas help.. its my project ..please :(

1 Answers  


why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above

0 Answers  


Categories