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?

Answers were Sorted based on User's Feedback



52.write a “Hello World” program in “c” without using a semicolon? 53.Give a method to cou..

Answer / ramesh

#include<stdio.h>
main()
{
if(printf("Hello world"))
getch();
return;
}

Is This Answer Correct ?    2 Yes 18 No

52.write a “Hello World” program in “c” without using a semicolon? 53.Give a method to cou..

Answer / yash

hi yash
#include<stdio.h>
int main()
{
while(printf("hello")){}
}

Is This Answer Correct ?    33 Yes 53 No

52.write a “Hello World” program in “c” without using a semicolon? 53.Give a method to cou..

Answer / cpd

53.another possible answer
count=0;
num; //32 bit integer
hex =0x01;
for(i=0;i<32;hex<<1,i++)
if(hex&num)
count++;

Is This Answer Correct ?    7 Yes 53 No

52.write a “Hello World” program in “c” without using a semicolon? 53.Give a method to cou..

Answer / murali krishna

52.#include<stdio.h>
int main()
{
for(printf("hello world");;)
{
}
return(0);
}

Is This Answer Correct ?    11 Yes 61 No

52.write a “Hello World” program in “c” without using a semicolon? 53.Give a method to cou..

Answer / sanjay

write a �Hello World� program in �c� without using a
semicolon?

#include<stdio.h>
int main()
{
while(!(printf("%s \n","hello world!!!")));
{
}
return(0);
}

Is This Answer Correct ?    22 Yes 92 No

Post New Answer

More C Interview Questions

how can i include my own .h file EX:- alex.h like #include<alex.h>, rather than #include"alex.h"

1 Answers  


Can we declare variables anywhere in c?

0 Answers  


What is cohesion in c?

0 Answers  


Explain setjmp()?

0 Answers  


a program that can input number of records and can view it again the record

0 Answers   Accenture,






#include <stdio.h> void main() { int i=-1,j=1,k,l; k=!i&&j; l=!i||j; printf ("%d%d",k,l) ; }

3 Answers   SRG,


Explain the use of 'auto' keyword

0 Answers  


What are the different types of linkage exist in c?

0 Answers  


what is the difference between #include<> and #include”…”?

5 Answers  


void main() { int i=5; printf("%d",i+++++i); }

17 Answers   ME,


Explain what is operator promotion?

0 Answers  


what is difference between array of characters and string

18 Answers   Accenture, Nest,


Categories