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
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 |
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 |
Answer / sagar naik
#include<stdio.h>
void main()
{
if(printf("hello world"))
}
Is This Answer Correct ? | 43 Yes | 25 No |
Answer / saurabh
#include<stdio.h>
main()
{
while(printf("Hello World \n"))
{
}
}
Is This Answer Correct ? | 40 Yes | 25 No |
Answer / vikky_manit
#inlcude<stdio.h>
void main()
{
if(printf("Hello world"))
{
}
}
Is This Answer Correct ? | 16 Yes | 9 No |
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 |
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 |
Answer / saurabh kumar singh
#inlclude<stdio.h>
void main()
{
while(printf("hello word\n"))
{
}
}
Is This Answer Correct ? | 6 Yes | 4 No |
Answer / chandan
52.write a �Hello World� program in �c� 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 |
#include <stdio.h> int main ( int argc, char* argv [ ] ) { int value1 = 10; int value2 = 5; printf ( "\n The sum is :%d", value1 | value2 ); } This is the answer asked by some one to add two numbers with out using arithmetic operator?Yes this answer is write it given out put as 15.But how????? what is need of following line? int main ( int argc, char* argv [ ] ) how it work?what is the meaning for this line? please explain me.Advance thanks
WHAT IS HEADER?
What is line in c preprocessor?
Write a program in c to print * * * * * *******
a program that performs some preliminary processing in C, it acts upon certain directives that will affect how the compiler does its work a) compiler b) loader c) directive d) preprocessor
What is #pragma statements?
What are 3 types of structures?
Explain how do you list files in a directory?
Why are algorithms important in c program?
What is the significance of c program algorithms?
macros and function are related in what aspect? a)recursion b)varying no of arguments c)hypochecking d)type declaration
12 Answers HCL, Infosys, Microsoft,
Does c have class?