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 / 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 |
Post New Answer View All Answers
Explain what are the __date__ and __time__ preprocessor commands?
What is #define used for in c?
Write a program to use switch statement.
What is data structure in c and its types?
Explain #pragma statements.
What is a structure in c language. how to initialise a structure in c?
What is sizeof int?
Why are algorithms important in c program?
How many main () function we can have in a project?
Can the sizeof operator be used to tell the size of an array passed to a function?
Is there anything like an ifdef for typedefs?
What is meant by gets in c?
What is the difference between the expression “++a” and “a++”?
Explain why c is faster than c++?
What is the total generic pointer type?