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 / niranjan vg

This is the other way you can use it.....

#include<stdio.h>


int hello();



_start()
{
_exit(hello());
}



int hello()
{
printf("\n \t\t\t\t\tHello World\n");
printf("\n \t \t \t Welome to C in Linux\n");
}

Is This Answer Correct ?    6 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain void pointer?

987


What is a structural principle?

1102


What are preprocessor directives in c?

1047


What is a 'null pointer assignment' error?

1172


What is calloc()?

1040


What are different storage class specifiers in c?

1055


Find duplicates in a file containing 6 digit number (like uid) in O (n) time.

3201


How can I read and write comma-delimited text?

1022


Should I learn data structures in c or python?

984


What is the auto keyword good for?

1079


what do the 'c' and 'v' in argc and argv stand for?

1121


What is actual argument?

1016


Which header file is essential for using strcmp function?

1430


Which are low level languages?

1051


what is the basis for selection of arrays or pointers as data structure in a program

4258