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
What does %p mean?
How can I manipulate individual bits?
What would be an example of a structure analogous to structure c?
What is the difference between NULL and NUL?
What is pre-emptive data structure and explain it with example?
how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software
What are the modifiers available in c programming language?
Explain with the aid of an example why arrays of structures don’t provide an efficient representation when it comes to adding and deleting records internal to the array.
What is wild pointer in c with example?
What is a nested loop?
What is abstract data structure in c?
What is keyword with example?
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
Is there anything like an ifdef for typedefs?