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

What is wrong with this initialization?

1007


Explain what is wrong with this program statement?

1120


in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.

8052


What does typeof return in c?

1101


What does p mean in physics?

1046


How can I read a binary data file properly?

1178


What are pointers in C? Give an example where to illustrate their significance.

1227


Why does everyone say not to use gets?

1107


Explain bit masking in c?

1143


Write the test cases for checking a variable having value in range -10.0 to +10.0?

2321


How can I determine whether a machines byte order is big-endian or little-endian?

1065


In C programming, what command or code can be used to determine if a number of odd or even?

1058


int far *near * p; means

3560


What is the difference between c and python?

1177


What is pass by value in c?

1073