Tuesday 27 June 2017

C Program written without Main()

What Is C Language?
C is a general-purpose, procedural, imperative computer programming language developed in 1972 by Dennis M. Ritchie at the Bell Telephone Laboratories to develop the UNIX operating system. C is the most widely used computer language. It keeps fluctuating at number one scale of popularity along with Java programming language, which is also equally popular and most widely used among modern software programmers.
For More Information : https://www.tutorialspoint.com/cprogramming/
Using Macro :
#include<studio.h>
#define abc main
int abc ()
{
printf(“Hello World “);
return 0;
}
Using tokenpasting :
#include<studio.h>
#define abc m##a##i##n
int abc ()
{
printf(“Hello World “);
return 0;
}

Thank You.
Happy Programming.

No comments:

Post a Comment