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 / ukrocky
Write Hello World Without using Hello World From Ukrocky
#include<iostream.h>
void main()
{
int a[12]={72,101,108,108,111,32,87,111,114,108,100,0};
for(int i=0; i<12; i++)
{
cout<<char(a[i]);
}
cout<<endl;
}
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Why void is used in c?
Explain how can I make sure that my program is the only one accessing a file?
What is pointer to pointer in c with example?
What is the most efficient way to store flag values?
Where is volatile variable stored?
What are local static variables? How can you use them?
What does 3 periods mean in texting?
swap 2 numbers without using third variable?
Explain Basic concepts of C language?
What is wild pointer in c with example?
What is the role of this pointer?
What are the 3 types of structures?
What is meant by type specifiers?
Explain what is the difference between #include and #include 'file' ?
Explain how can I read and write comma-delimited text?