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
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 ?    290 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
 
is it possible to change the default calling convention in c ? Aptech 1
write C code to reverse a string such that if i/p is "abc defg hij klmno pqrs tuv wxyz" and the o/p should be "cba gfed jih onmlk srqp vut zyxw"   2
which is the best site or book for learning C...and i need the content for C..how to get the good programming skills....? can plz suggest me....   2
write a c program for print your name .but,your name may be small letter mean print a capital letter or your name may be capital letter mean print a small letter .example \\enter ur name : sankar The name is: SANKAR (or) enter your name:SAnkar The name is:saNKAR   5
write a c programme for add of two numbers with out use of arthematic operators   2
c program to manipulate x=1+3+5+...+n using recursion Wipro 2
two variables are added answer is stored on not for third variable how it is possible?   3
#include<stdio.h> #include<conio.h> struct stu { int i; char j; }; union uni { int i; char j; }; void main() { int j,k; clrscr(); struct stu s; j=sizeof(s); printf("%d",j); union uni u; k=sizeof(u); printf("%d",k); getch(); } what is value of j and k. Facebook 2
write a program in 'c' to find the value of p[i+1]^n.p,i,n are arguments of a macro and n is a integer   1
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? TCS 24
write a program to display & create a rational number HCL 1
related to rdbms query .   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