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
Why doesnt this code work?
What is an array in c?
Is linux written in c?
Why do we need arrays in c?
the maximum length of a character constant can be a) 1 character b) 8 characters c) 256 chaacters d) 125 characters
Write a factorial program using C.
When should the const modifier be used?
What do you understand by normalization of pointers?
Explain the difference between null pointer and void pointer.
Write a simple code fragment that will check if a number is positive or negative.
What are the different types of data structures in c?
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
Explain what are linked list?
Suppose we have a table name EMP as below. We want to perform a operation in which, I want to change name ‘SMITH’ from as ‘SMITH JAIN’. Also I want to change the name of the column from ENAME to E_NAME. EMPNO ENAME JOB MGR HIREDATE SAL 7369 SMITH Coder 7902 17-DEC-80 800 7499 ALLEN SALESMAN 7698 20-FEB-81 1600 7521 WARD SALESMAN 7698 22-FEB-81 1250
any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()