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 / v.srinivasan

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 ?    315 Yes 44 No

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

Answer / devarathnam .c, s.v.university

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 ?    267 Yes 137 No

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

Answer / sandeep

if(printf("HELLO WORLD"))

Is This Answer Correct ?    41 Yes 17 No

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

Answer / sagar naik

#include<stdio.h>
void main()
{
if(printf("hello world"))
}

Is This Answer Correct ?    43 Yes 25 No

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

Answer / saurabh

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

Is This Answer Correct ?    40 Yes 25 No

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

Answer / vikky_manit

#inlcude<stdio.h>
void main()
{
if(printf("Hello world"))
{
}
}

Is This Answer Correct ?    16 Yes 9 No

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

Answer / surekha

#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 ?    8 Yes 3 No

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

Answer / siva jyothi

53:
#include<stdio.h>
main()
{
unsigned int num;
int i=0;
while(num!=0)
{
if(num&1 == 1)
{
i++;
}
num>>=1;
}
printf("number of 1's is:%d\n",i);
}

Is This Answer Correct ?    3 Yes 0 No

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

Answer / saurabh kumar singh

#inlclude<stdio.h>
void main()
{
while(printf("hello word\n"))
{
}
}

Is This Answer Correct ?    6 Yes 4 No

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

Answer / chandan

52.write a &#65533;Hello World&#65533; program in &#65533;c&#65533; without using a
semicolon?
#include<stdio.h>
void main()
{
if(printf("Hello world"))
{}
//if(!(printf("Hello world"))) {} it will also work.
//while(!(printf("Hello world"))) {} it will also work.
}

Is This Answer Correct ?    3 Yes 1 No

Post New Answer

More C Interview Questions

What is a const pointer in c?

0 Answers  


What is the difference b/w Structure & Array?

6 Answers  


a memory of 20 bytes is allocated to a string declared as char *s then the following two statements are executed: s="Etrance" l=strlen(s); what is the value of l ? a.20 b.8 c.9 d.21

4 Answers   TCS,


The differences between Windows XP and Windows Visa

8 Answers   HCL,


What does. int *x[](); means ?

0 Answers   Wilco,






‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.

0 Answers  


Why is c so important?

0 Answers  


whenever a question is posted in a particular category in allinterview.com, Is there any facility to receive an indication mail. For eg: I need to receive an indication email, whenever a question is posted under the category “C Langauage”.

1 Answers  


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.

2 Answers   Scientific Atlanta, Wipro,


write a program to input 10 strings and compare without using strcmp() function. If the character of one string matches with the characters of another string , sort them and make it a single string ??? example:- str1="Aakash" st2="Himanshu" str="Uday" output:- Aakashimanshuday (please post the answer as quickly as possible)

0 Answers   Google,


a=0; while(a<5) printf("%d\n",a++); how many times does the loop occurs? a.infinite b.5 c.4 d.6

7 Answers   TCS,


write a program for the normal snake games find in most of the mobiles.

0 Answers   Accenture, Wipro,


Categories