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 does %p mean?

1153


How can I manipulate individual bits?

1095


What would be an example of a structure analogous to structure c?

1047


What is the difference between NULL and NUL?

1351


What is pre-emptive data structure and explain it with example?

3786


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

3371


What are the modifiers available in c programming language?

1273


Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.

3211


What is wild pointer in c with example?

1108


What is a nested loop?

1178


What is abstract data structure in c?

1104


What is keyword with example?

1121


write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.

2041


Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

1152


Is there anything like an ifdef for typedefs?

1214