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...

how to create c progarm without void main()?

Answer Posted / surya bhagavan s

#include<stdio.h>
#include <unistd.h>

_start()
{
_exit(my_main());
}

int my_main(void)
{
printf("Hello\n");
return 42;
}

for compilation

gcc -o3 -nostartfiles example.c

Is This Answer Correct ?    2 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain data types & how many data types supported by c?

1021


hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..

1867


what is reason of your company position's in india no. 1.

2221


What is #include conio h?

937


What is this infamous null pointer, anyway?

987


Why is c called a mid-level programming language?

1146


How many levels of pointers can you have?

1134


the constant value in the case label is followed by a a) semicolon b) colon c) braces d) none of the above

1195


What is variables in c?

977


What is %d called in c?

1181


What is the difference between #include

and #include “header file”?

965


Can we declare variables anywhere in c?

945


Give basis knowledge of web designing ...

1978


Is it possible to have a function as a parameter in another function?

1033


Why do we use stdio h and conio h?

1029