how to execute with out main in cprogram
Answer Posted / sushil kumar
Well Done !!!!!!!
I can give an explanation
When a c program is compiled the preprocessor process the code and replace the macros in the code
IN void rawat()
#define rawat ravinder(m,b,a,j,n,i) replaces rawat so code becomes
void ravinder(m,b,a,j,n,i)()
which calls the first macro to replace ravinder(m,b,a,j,n,i) by m##a##i##n i.e main
so now we have
void main()
that's why this code executes correctly
C always requires a main program to execute
| Is This Answer Correct ? | 23 Yes | 1 No |
Post New Answer View All Answers
What is the advantage of using #define to declare a constant?
Does free set pointer to null?
What are keywords in c with examples?
Write a program to print factorial of given number without using recursion?
a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)
Do you know null pointer?
What is memcpy() function?
What is the significance of scope resolution operator?
Do you know the difference between malloc() and calloc() function?
Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.
What is 2 d array in c?
How can you draw circles in C?
What are loops c?