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 (2266)
 C++ interview questions  C++ Interview Questions (1121)
 VC++ interview questions  VC++ Interview Questions (342)
 Delphi interview questions  Delphi Interview Questions (510)
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions (652)
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 ?    296 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 23 No
Sagar Naik
 
Answer
# 5
#include<stdio.h>
main()
{
while(printf("Hello World \n"))
{
}
}
 
Is This Answer Correct ?    38 Yes 24 No
Saurabh
 
Answer
# 6
#inlcude<stdio.h>
void main()
{
if(printf("Hello world"))
{
}
}
 
Is This Answer Correct ?    14 Yes 7 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 type of language is C? Microsoft 9
#include<stdio.h> int main() { int i=0,j=1,k=2,m,n=0; m=i++&&j++&&k++||n++; printf("%d,%d,%d,%d,%d",i,j,k,m,n); } Capital-IQ 12
#include<stdio.h> main() { char *p1; char *p2; p1=(char *) malloc(25); p2=(char *) malloc(25); strcpy(p1,"Ramco"); strcpy(p2,"Systems"); strcat(p1,p2); printf("%s",p1); } Tell me the output? Ramco 6
main() { int i,j,A; for(A=-1;A<=1;A++) prinf("%d\t",!!A); }   6
int main(){ float f=8.0; if(f==8.0) printf("good"); else printf("bad"); } what is the answere and explain it?   3
5. What kind of sorting is this: SORT (k,n) 1.[Loop on I Index] repeat thru step2 for i=1,2,........n-1 2.[For each pass,get small value] min=i; repeat for j=i+1 to N do { if K[j]<k[min] min=j; } temp=K[i];K[i]=K[min];K[min]=temp; 3.[Sorted Values will be returned] A)Bubble Sort B)Quick Sort C)Selection Sort D)Merge Sort Accenture 2
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 IBM 3
what is meant by the "equivalence of pointers and arrays" in C? Satyam 3
What is Lazy evaluation in C? Give an example.   1
write a c programs to do multiplication of two numbers with out using arithmatic operator ?????????? TCS 7
how to find a 5th bit is set in c program IBM 4
what are the static variables HCL 8
 
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