Wednesday, 10 September 2014

Say "Hello world!" in C without main method!

The first question that would come into your mind is, is it really possible to make a running program in C without a main method? So, YES, it is possible. Below is the running program code without a main method.

#include<stdio.h>
#define fun main
int fun(void)
{
    printf("Hello world!");
    return 0;
}

How to make a Java program without a main method ?

No comments:

Post a Comment