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?
Answer Posted / 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 |
Post New Answer View All Answers
if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above
What are pointers?
How can I read data from data files with particular formats?
Who developed c language?
Why is c called "mother" language?
Give differences between - new and malloc() , delete and free() ?
What is the size of a union variable?
Is c procedural or functional?
Explain what is the benefit of using const for declaring constants?
What's the best way of making my program efficient?
What is the meaning of && in c?
What are void pointers in c?
Is file a keyword in c?
Can we add pointers together?
How to create struct variables?