C/C++ Program without Main() function

This is a simple  Program in C or C++ without the Main() function This is a part of Mumbai University MCA Colleges. This question is often asked in interviews.

Program without Main()


#define  main  my

void  my()
    printf("Programs and notes for mca");

What we have done here is that we have used the #define directive my as 'main'.
So where ever we need to use the main keyword we replace it with 'my'.

Hope this Program is useful to you in some sense or other. Keep on following this blog for more Mumbai University MCA College Programs. Happy Programming and Studying.

No comments:

Post a Comment