ALLInterview.com :: Home Page KalAajKal.com
 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                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
How can I make a program in c to print 'Hello' without 
using semicolon in the code?
 Question Submitted By :: Rohit Mishra
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How can I make a program in c to print 'Hello' without using semicolon in the code?
Answer
# 1
main()
{

if(printf("hello"))

}
 
Is This Answer Correct ?    23 Yes 3 No
Prashanth
 
  Re: How can I make a program in c to print 'Hello' without using semicolon in the code?
Answer
# 2
int main()
{

if(printf("Hello"))
{
//Null statement
}

}
 
Is This Answer Correct ?    20 Yes 3 No
Jaya Prakash
 
 
 
  Re: How can I make a program in c to print 'Hello' without using semicolon in the code?
Answer
# 3
int main()
{
  if(printf("Hello"))
   {
    
   }
}

Answer 2nd is correct;
 
Is This Answer Correct ?    9 Yes 0 No
Madhu
 
  Re: How can I make a program in c to print 'Hello' without using semicolon in the code?
Answer
# 4
main()
{
if( (printf("hello"))
}
 
Is This Answer Correct ?    4 Yes 0 No
Mukul
 
  Re: How can I make a program in c to print 'Hello' without using semicolon in the code?
Answer
# 5
{ 
  if(printf("Hello"))
    { 
      \*blank*\
    }
}
 
Is This Answer Correct ?    4 Yes 0 No
Akash Dibya
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
what is the output of below pgm? void main() { int i=0; if(i) printf("pass"); else printf("fail"); }  3
Write a program to find the given number is odd or even without using any loops(if,for,do,while)  2
Which of the Following is not defined in string.h? A)strspn() B)strerror() C)memchr() D)strod() Accenture1
what is y value of the code if input x=10 y=5; if (x==10) else if(x==9) elae y=8; a.9 b.8 c.6 d.7 TCS2
What is the Difference between Macro and ordinary definition? Motorola2
what is the output for the code : main() { int i,j; printf("%d %d ",scanf("%d%d",&i,&j)); } Infosys14
What is the diffences between Windows XP and Windows Visa Aricent1
int i =10 main() { int i =20,n; for(n=0;n<=i;) { int i=10 i++; } printf("%d", i); HCL5
DIFFERNCE BETWEEN THE C++ AND C LANGUAGE? Wipro1
main() { char *p; p="Hello"; printf("%c\n",*&*p); } ME2
What is RAM memory? and What is ROM?Who designed one is temparary and another is permanent?why they designed like that?By using far pointer which type data(whether hexadecimal)we can access? Excel1
Two's compliment of -5 Adobe3
Every time i run a c-code in editor, getting some runtime error and editor is disposing, even after reinstalling the software what may be the problem?  2
How can we open a file in Binary mode and Text mode?what is the difference? PanTerra1
how to find sum of digits in C? CTS10
the factorial of non-negative integer n is written n! and is defined as follows: n!=n*(n-1)*(n-2)........1(for values of n greater than or equal to 1 and n!=1(for n=0) Perform the following 1.write a c program that reads a non-negative integer and computes and prints its factorial. 2. write a C program that estimates the value of the mathematical constant e by using the formula: e=1+1/!+1/2!+1/3!+.... 3. write a c program the computes the value ex by using the formula ex=1+x/1!+xsquare/2!+xcube/3!+.... Ignou2
How can I allocate arrays or structures bigger than 64K?  4
Why preprocessor should come before source code?  2
Find the middle node in the linked list?? (Note:Do not use for loop, count and count/2) Subex2
What will be result of the following program? void myalloc(char *x, int n) { x= (char *)malloc(n*sizeof(char)); memset(x,\0,n*sizeof(char)); } main() { char *g="String"; myalloc(g,20); strcpy(g,"Oldstring"); printf("The string is %s",g); } a) The string is : String b) Run time error/Core dump c) The string is : Oldstring d) Syntax error during compilation e) None of these IBM3
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com