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
Is c easy to learn?
What is the use of void pointer and null pointer in c language?
Can you please compare array with pointer?
What are the 32 keywords in c?
Explain output of printf("Hello World"-'A'+'B'); ?
What is the best organizational structure?
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
What is a char c?
What does c mean before a date?
What are the benefits of c language?
What is the use of pointers in C?
What is c language and why we use it?
What are the 3 types of structures?
What is the purpose of & in scanf?
What is calloc malloc realloc in c?