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

Give basis knowledge of web designing ...

2016


What are volatile variables in c?

936


Which is better oop or procedural?

1055


hi... can anyone help me to make a two-dimensinal arrays in finding the sum of two elements plzzz. thnx a lot...

1915


What are high level languages like C and FORTRAN also known as?

1168


What is the process to generate random numbers in c programming language?

1168


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

4423


Are pointers really faster than arrays?

1019


What is the translation phases used in c language?

1117


What are the advantages of using linked list for tree construction?

1078


write a program to find out prime number using sieve case?

2089


Explain what are bus errors, memory faults, and core dumps?

1270


What is the significance of an algorithm to C programming?

1042


How a string is stored in c?

1059


Apart from dennis ritchie who the other person who contributed in design of c language.

1391