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


Please Help Members By Posting Answers For Below Questions

Is c easy to learn?

563


What is the use of void pointer and null pointer in c language?

633


Can you please compare array with pointer?

619


What are the 32 keywords in c?

639


Explain output of printf("Hello World"-'A'+'B'); ?

979






What is the best organizational structure?

644


Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

661


What is a char c?

596


What does c mean before a date?

594


What are the benefits of c language?

651


What is the use of pointers in C?

626


What is c language and why we use it?

626


What are the 3 types of structures?

574


What is the purpose of & in scanf?

602


What is calloc malloc realloc in c?

598