ALLInterview.com :: Home Page            
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Google
   
 
Categories >> Software >> Programming Languages >> C
 
 


 

 
 C interview questions  C Interview Questions (2266)
 C++ interview questions  C++ Interview Questions (1121)
 VC++ interview questions  VC++ Interview Questions (342)
 Delphi interview questions  Delphi Interview Questions (510)
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions (652)
Question
write a c program to print "Welcome" without using semicolon
in the whole program ??
 Question Submitted By :: C
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
main()
{
if(printf("Welcome"))
//Do nothing
}
 
Is This Answer Correct ?    47 Yes 17 No
VadivelT
 
Answer
# 2
main()
{
if(printf("Welcome"))
{
}
}
 
Is This Answer Correct ?    28 Yes 9 No
Sagar
 
 
 
Answer
# 3
main()
{
if(printf("Welcome"))
{
}
}

(OR)

main()
{
if(printf("Welcome"))
}
 
Is This Answer Correct ?    12 Yes 4 No
Rama Krishna Sidhartha
 
Answer
# 4
main()
{
if(printf("welcome"))
{
}
}
 
Is This Answer Correct ?    6 Yes 3 No
Mani
 
Answer
# 5
#include<stdio.h>
#include<conio.h>
void main(void)
{
if(printf("welcome"))
{}
}
 
Is This Answer Correct ?    3 Yes 0 No
Manoj Srivastava
 
Answer
# 6
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 ?    4 Yes 2 No
Hari
 
Answer
# 7
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 ?    7 Yes 6 No
Sagar
 
Answer
# 8
//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 ?    1 Yes 0 No
Peanut64
 
Answer
# 9
#include<stdio.h>
{
main()
while(printf("welcome"))
}
 
Is This Answer Correct ?    1 Yes 0 No
Kayalvizhi.s
 
Answer
# 10
#include<stdio.h>
#include<conio.h>
void main()
{
if(printf ("hi"))
getch();
}
 
Is This Answer Correct ?    0 Yes 1 No
Sandip Kundu
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
Write a C program to print 1 2 3 ... 100 without using loops? Hindalco 15
Design a program using an array that lists even numbers and odd numbers separately from the 12 numbers supplied by a user.   8
what does data structure mean?   8
write a program in C to swap two variables Marlabs 7
who is the father of c Infosys 4
what will be the output off the following program? #include<stdio.h> int main() { int a; a=015+0*71+5; printf("%d,a"); return0; } HCL 9
WRITE A PROGRAM TO PRINT THE FOLLOWING OUTPUTS USING FOR LOOPS. A) * B) ***** *** * * ***** * * *****   2
HOW TO ANSWER IF ASKED " WHAT KIND OF A PERSON ARE YOU?" I NEED AN ANSWER THAT IMPRESS THE INTERVIEWER   4
how to find the size of the data type like int,float without using the sizeof operator?   13
How do I initialize a pointer to a function?   2
what is pointer?   3
what is the purpose of the code, and is there any problem with it. bool f( uint n ) { return (n & (n-1)) == 0; } google 1
 
For more C Interview Questions Click Here 
 
 
 
 
 


   
Copyright Policy  |  Terms of Service  |  Articles  |  Site Map  |  RSS Site Map  |  Contact Us
   
Copyright 2013  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  KalAajKal.com