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 file in c preprocessor?

658


What kind of structure is a house?

562


write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34

1636


about c language

1608


List some of the static data structures in C?

766






An instruction which is analysed and acted upon by the processor prior to the compiler going its work a) directive b) constructive c) constant d) absolute mode

611


What are types of structure?

610


What is wrong with this program statement? void = 10;

828


Explain how do you determine the length of a string value that was stored in a variable?

674


How can I delete a file?

634


What is the use of #include in c?

585


Explain the use of keyword 'register' with respect to variables.

594


What do you mean by c what are the main characteristics of c language?

576


What is the use of clrscr?

602


What would be an example of a structure analogous to structure c?

578