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

Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.

1473


What is C language ?

2019


Can we compile a program without main() function?

1181


How are variables declared in c?

1151


How do you define structure?

1093


Explain how do you print only part of a string?

1280


Lists the benefits of c programming language?

1205


Which type of language is c?

1123


Is there any demerits of using pointer?

1117


What is static and auto variables in c?

1143


Explain the difference between null pointer and void pointer.

1134


Hai sir, I had planned to write the NIC scientific engineer exam , plz post the sample question......

2235


What is size of union in c?

1081


What is the meaning of 2d in c?

1168


Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?

1131