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 (2265)
 C++ interview questions  C++ Interview Questions (1119)
 VC++ interview questions  VC++ Interview Questions (342)
 Delphi interview questions  Delphi Interview Questions (510)
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions (648)
Question
52.write a “Hello World” program in “c” without using a
semicolon?
53.Give a method to count the number of ones in a 32 bit number?
54.write a program that print itself even if the source file
is deleted?
55.Given an unsigned integer, find if the number is power of 2?
 Question Submitted By :: C
I also faced this Question!!     Answer Posted By  
 
Answer
# 1
write a �Hello World� program in �c� without using a
semicolon?

#include<stdio.h>
main()
{
if(printf("Hello World \n"))
{
}
}

This will work perfectly.
 
Is This Answer Correct ?    295 Yes 42 No
V.srinivasan
 
Answer
# 2
Hi Sujatha,

Program for your question no.52.

#include<stdio.h>
main()
{
if(Printf("Hello World!!!"))
}
Here I didn't use semicolon, I hope I met your criteria.
 
Is This Answer Correct ?    261 Yes 133 No
Devarathnam .c, S.v.university
 
 
 
Answer
# 3
if(printf("HELLO WORLD")) 
Is This Answer Correct ?    38 Yes 15 No
Sandeep
 
Answer
# 4
#include<stdio.h>
void main()
{
if(printf("hello world"))
}
 
Is This Answer Correct ?    41 Yes 22 No
Sagar Naik
 
Answer
# 5
#include<stdio.h>
main()
{
while(printf("Hello World \n"))
{
}
}
 
Is This Answer Correct ?    38 Yes 21 No
Saurabh
 
Answer
# 6
#inlcude<stdio.h>
void main()
{
if(printf("Hello world"))
{
}
}
 
Is This Answer Correct ?    14 Yes 6 No
Vikky_manit
 
Answer
# 7
#include<stdio.h>
#include<conio.h>
void main()
{
while(!printf("Hell, this is aptech"))
{
}
}
/*after compilation and execution,press alt+f5 to see the
result */
 
Is This Answer Correct ?    7 Yes 2 No
Surekha
 
Answer
# 8
#inlclude<stdio.h>
void main()
{
while(printf("hello word\n"))
{
}
}
 
Is This Answer Correct ?    5 Yes 3 No
Saurabh Kumar Singh
 
Answer
# 9
a program to print a string i am in allahabad without using
a semicolon.
#include<stdio.h>
#include<conio.h>
void main()

{
if(printf(" i am in allahabad"))
getch();
}
 
Is This Answer Correct ?    4 Yes 2 No
Anshukumarsrivastava.
 
Answer
# 10
#include<stdio.h>
main()
{
while(printf("hello world"))
{
}
return(0);
}
 
Is This Answer Correct ?    2 Yes 0 No
Deepak Kumar
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
What is the difference between getch() and getche()?   1
write a program to interchange the value between two variable without using loop   1
write a program to copy a string without using a string?   2
how to add two numbers without using arithmetic operators?   4
1) int main() { unsigned char a = 0; do { printf("%d=%c\n",a,a); a++; }while(a!=0); return 0; } can anyone please explain the explain the output   2
what will be the output of this program? void main() { int a[]={5,10,15}; int i=0,num; num=a[++i] + ++i +(++i); printf("%d",num); } MICROSOFT 5
why in C,C++'s int size is 2 byte and .net(c#) int Size is 4 byte?   2
Why c++ is called c++ and not c+? EBS 8
what will be the output for the following main() { printf("hi" "hello"); }   5
Example of friendly function in c++   2
what is the advantage of function pointer TCS 16
How to Clear last bit if it 1 using Macro TURN_OFF_BIT_LAST Adobe 6
 
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