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
why arguments can generally be passed to functions a) sending the values of the arguments b) sending the addresses of the arguments c) a & b d) none of the above
What is a structure and why it is used?
What is methods in c?
Can the “if” function be used in comparing strings?
Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?
How can I get random integers in a certain range?
How are portions of a program disabled in demo versions?
Can a variable be both constant and volatile?
What is difference between union and structure in c?
What are the advantages of using Unions?
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
Why is struct padding needed?
What is calloc malloc realloc in c?
What are the 32 keywords in c?
What is a global variable in c?