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 / kk

Here is a basic sample which uses main as the entry point..
#include <stdio.h>
#define myProxyMain main

int myProxyMain()
{
printf("\nHello World !!");
getchar();
return 0;
}

Just note that at source level there is no main but once
preprocessing we still have the old main() method.. Which
means we still have the main method in the object module as
well as the executable..

Is This Answer Correct ?    37 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain how do I determine whether a character is numeric, alphabetic, and so on?

1096


How can I insert or delete a line (or record) in the middle of a file?

986


can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......

1817


Explain how can I convert a string to a number?

1038


What are the differences between new and malloc in C?

1086


What is return type in c?

1086


Write a program to show the change in position of a cursor using c

1011


code for quick sort?

1989


What is identifier in c?

974


What is the benefit of using #define to declare a constant?

1057


how to count no of words,characters,lines in a paragraph.

4387


a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

1341


Differentiate between a for loop and a while loop? What are it uses?

1144


How does pointer work in c?

1083


Is c procedural or object oriented?

964