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

What is the difference between declaring a variable by constant keyword and #define ing that variable?

3283


Are there any problems with performing mathematical operations on different variable types?

991


What is the difference between scanf and fscanf?

1198


Which header file is used for clrscr?

999


Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.

1947


Can a variable be both static and volatile in c?

973


What is the best way to store flag values in a program?

1009


write a program to rearrange the array such way that all even elements should come first and next come odd

2223


Who is the main contributor in designing the c language after dennis ritchie?

952


How can I write functions that take a variable number of arguments?

1075


What is the translation phases used in c language?

1059


What is volatile variable in c with example?

997


What should malloc() do? Return a null pointer or a pointer to 0 bytes?

1014


What is pointer to pointer in c?

1059


How can variables be characterized?

2129