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 (2262)
 C++ interview questions  C++ Interview Questions (1118)
 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 ?    292 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
 
Write a small C program to determine whether a machine's type is little-endian or big-endian. nvidia 5
what is a far pointer TCS 12
proc() { static i=10; printf("%d",i); } If this proc() is called second time, what is the output? Hughes 7
Write a function that accepts two numbers,say a and b and makes bth bit of a to 0.No other bits of a should get changed. Scientific-Atlanta 2
how we can say java is platform independent, while we require JVM for that particular Operating System? TCS 3
A array contains dissimilar element how can we count, and A array contains dissimilar element how can we store in another array with out repetition.   4
how to determine the complexity of an algorithm as log(n) Google 1
can any one tell that i have a variable which is declared as static but i want this variable to be visible to the other files? how?   2
how to create c progarm without void main()?   1
YBJBU6   1
write a program for fibonaci series by using while loop in c?   2
why programming language C is still used in operating system's kernel?? Wipro 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