wap to print "hello world" without using the main function.

Answer Posted / kk

main() method is the entry point for any c/c++ program which
is compiled/linked as executable. C/C++ does not force
anyone to use only main() method as the entry point. This is
only the default behavior and can be changed. This is
generally slightly different for different compiler. But you
can do this.. Simply define any other method say noMe() to
be the entry point for the executable.
Who the hell uses main()to do main stuffs in any
executable.. It should have been called something like
start() ot begin().. :)

Well this is not the answer.. Just little guidance..

Is This Answer Correct ?    3 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the significance of an algorithm to C programming?

596


What are the salient features of c languages?

625


Explain what is the difference between the expression '++a' and 'a++'?

627


What are the types of macro formats?

610


What is the translation phases used in c language?

636






All technical questions

1511


In C programming, what command or code can be used to determine if a number of odd or even?

622


What is pivot in c?

566


Program to find the sum of digits of a given number until the sum becomes a single digit. (e.g. 12345=>1+2+3+4+5=15=>1+5=6)

689


What does the && operator do in a program code?

698


What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?

941


4-Take two sets of 5 numbers from user in two arrays. Sort array 1 in ascending and array 2 in descending order. Perform sorting by passing array to a function mySort(array, sortingOrder). Then multiply both the arrays returned from function, using metric multiplication technique in main. Print result in metric format.

1727


How do I convert a string to all upper or lower case?

629


Why do we write return 0 in c?

555


What is variable in c example?

594