wap to print "hello world" without using the main function.
Answer Posted / kk
Here is a basic sample which uses main as the entry point..
#include <stdio.h>
#define myProxyMain main
int myProxyMain()
{
printf("\nHello World !!");
getchar();
return 0;
}
Just note that at source level there is no main but once
preprocessing we still have the old main() method.. Which
means we still have the main method in the object module as
well as the executable..
| Is This Answer Correct ? | 37 Yes | 11 No |
Post New Answer View All Answers
Explain how do I determine whether a character is numeric, alphabetic, and so on?
How can I insert or delete a line (or record) in the middle of a file?
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
Explain how can I convert a string to a number?
What are the differences between new and malloc in C?
What is return type in c?
Write a program to show the change in position of a cursor using c
code for quick sort?
What is identifier in c?
What is the benefit of using #define to declare a constant?
how to count no of words,characters,lines in a paragraph.
a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above
Differentiate between a for loop and a while loop? What are it uses?
How does pointer work in c?
Is c procedural or object oriented?