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 / jareesh
//answer for 53
#include "stdafx.h"
void _tmain(int argc, _TCHAR* argv[])
{
if (printf("hi")){}
}
//I tested in win32 console program, worked perfect.
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
Where are c variables stored in memory?
What is a far pointer in c?
Are comments included during the compilation stage and placed in the EXE file as well?
What is structure data type in c?
Can we assign string to char pointer?
How can I implement sets or arrays of bits?
Write a program on swapping (100, 50)
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
.main() { char *p = "hello world!"; p[0] = 'H'; printf("%s",p); }
write a c program to calculate sum of digits till it reduces to a single digit using recursion
List the different types of c tokens?
What is the use of getchar functions?
What is the function of this pointer?
Explain about the constants which help in debugging?
If errno contains a nonzero number, is there an error?