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
What is a node in c?
How to compare array with pointer in c?
What is the use of define in c?
Explain why can’t constant values be used to define an array’s initial size?
Explain what is #line used for?
What is the general form of #line preprocessor?
Explain how many levels deep can include files be nested?
What are pointers? Why are they used?
What is string function c?
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
define string ?
Do you have any idea about the use of "auto" keyword?
what is the diffrenet bettwen HTTP and internet protocol
What are header files in c programming?
What does static variable mean in c?