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 a program to display the numbers in the following format 4 4 3 3 3 3 2 2 2 2 2 2 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 2 2 2 2 2 3 3 3 4

9 Answers   IBM, NIIT, Winit,


can anyone please tell me wat is backlogs... i was looking for the job openings where i read this.. eligibility criteria minimum 70% in degree without backlogs. is that arrear.. if so is it standing arrear or history of arrears... please help me...

11 Answers   CTS, Indian Navy, L&T, Microsoft, SSB, TCE, TCS,


How can I read a directory in a c program?

1 Answers   CSC,


what wud be the output? main() { char *str[]={ "MANISH" "KUMAR" "CHOUDHARY" }; printf("\nstring1=%s",str[0]); printf("\nstring2=%s",str[1]); printf("\nstring3=%s",str[2]); a)string1=Manish string2=Kumar string3=Choudhary b)string1=Manish string2=Manish string3=Manish c)string1=Manish Kumar Choudhary string2=(null) string3=(null) d)Compiler error

9 Answers   Infosys,


write a program to sum of its digit with using control structure or with out using loop. for ex: let the number is 25634 then answer will be=2+5+6+3+4=20

4 Answers  






WHAT IS THE DIFFERENCE BETWEEN malloc() and calloc() in c file management?

28 Answers   3D PLM, Code Studio, Deltech, IBM,


1,4,8,13,21,30,36,45,54,63,73,?,?.

10 Answers   AMB, Franklin Templeton,


What is dangling pointer in c?

0 Answers  


Why do we write return 0 in c?

0 Answers  


wt is diference between int and int pointer as same as float and float pointer and char and char pointer

8 Answers   CTS, Infosys,


Does c have enums?

0 Answers  


write a own function for strstr

1 Answers   LG Soft,


Categories