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
how logic is used
What is the use of linkage in c language?
What is pointers in c with example?
How do you initialize pointer variables?
What is the use of ?: Operator?
What language is lisp written in?
What is difference between %d and %i in c?
how to construct a simulator keeping the logical boolean gates in c
Explain what are binary trees?
What is a nested formula?
how to count no of words,characters,lines in a paragraph.
What are reserved words with a programming language?
find the value of y y = 1.5x+3 for x<=2 y = 2x+5 for x>2
Do character constants represent numerical values?
What is dynamic variable in c?