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
What is the use of a ‘ ’ character?
What is the maximum length of an identifier?
Is main an identifier in c?
Difference between pass by reference and pass by value?
What is the right type to use for boolean values in c? Is there a standard type? Should I use #defines or enums for the true and false values?
This is a variation of the call_me function in the previous question:call_me (myvar)int *myvar;{ *myvar += 5; }The correct way to call this function from main() will be a) call_me(myvar) b) call_me(*myvar) c) call_me(&myvar) d) expanded memory
main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above
Disadvantages of C language.
What is the difference between c &c++?
C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions
Write a program to reverse a given number in c?
What is mean by data types in c?
How do you initialize pointer variables?
write a proram to reverse the string using switch case?
What are the usage of pointer in c?