Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

wap to print "hello world" without using the main function.

Answer Posted / andy

Ranjan's answer was the correct one. And it's what interviewers expect.

use g++ to compile and run this:

#include<stdio.h>
#include<iostream>

class World
{
public:
World()
{
printf("Hello world\n");
}
};

World w1;

int main()
{
printf("Hello world again!!\n");
return 0;
}

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.

2908


What are different types of operators?

1092


What is the difference between text and binary modes?

1235


Is there sort function in c?

1063


What is size of union in c?

1076


What is formal argument?

1189


Explain how can I remove the trailing spaces from a string?

1101


Explain the difference between ++u and u++?

1187


Explain a file operation in C with an example.

1171


Is there any possibility to create customized header file with c programming language?

1104


Why array is used in c?

1059


Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me

1988


Explain the binary height balanced tree?

1231


What are control structures? What are the different types?

1141


How can you find the exact size of a data type in c?

1043