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 (2253)
 C++ interview questions  C++ Interview Questions (1111)
 VC++ interview questions  VC++ Interview Questions (342)
 Delphi interview questions  Delphi Interview Questions (510)
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions (646)
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 ?    45 Yes 17 No
VadivelT
 
Answer
# 2
main()
{
if(printf("Welcome"))
{
}
}
 
Is This Answer Correct ?    27 Yes 9 No
Sagar
 
 
 
Answer
# 3
main()
{
if(printf("Welcome"))
{
}
}

(OR)

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

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
write a program to print the all 4digits numbers & whose squares must me even numbers? Virtusa 2
WHO WROTE C LANGUAGE?   4
Give the output for the following program. #define STYLE1 char main() { typedef char STYLE2; STYLE1 x; STYLE2 y; clrscr(); x=255; y=255; printf("%d %d\n",x,y); } ADITI 2
Describe for loop and write a c program to sum the series X + x2/2! + x3 /3! + .. up to fifteen terms.   2
difference between semaphores and mutex?   1
write the program to find multiplication of 2-D matrix??????????   1
Find the output? void main() {float a=2.0; printf("\nSize of a ::%d",sizeof(a)); printf("\nSize of 2.0 ::%d",sizeof(2.0));} IBM 11
How can I read a directory in a c program? CSC 1
When is an interface "good"?   1
wht is the difference between KPO and BPO ? BPO 2
Why doesn't C have nested functions?   2
my name is nani i completed my b-tech in hyd now i want go for interveiw but i dont know the process of software field interveiws plz help me anyone how many rouds there n what rounds plz plz plz help me n where i can get these details   2
 
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