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 / 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 |
Post New Answer View All Answers
How can I find the modification date of a file?
What will the preprocessor do for a program?
How are strings stored in c?
Write the syntax and purpose of a switch statement in C.
Which driver is a pure java driver
How can I dynamically allocate arrays?
What is a list in c?
why do some people write if(0 == x) instead of if(x == 0)?
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
What is sizeof array?
What are the application of c?
Do variables need to be initialized?
What is the right way to use errno?
what do u mean by Direct access files? then can u explain about Direct Access Files?
How can I split up a string into whitespace-separated fields?