March 2010 Contest
c
Beautiful coding:
What to know how to code without using semicolon?
void main(int a ,int b)
{
if(clrscr(),printf("\nEnter two integers:"),scanf("%d %d",&a,&b))
while(printf("\nSuccessful addition:%d",a+b),getch(),0)
{ }
}
Program without header file?
So continuing in the series of program without, here are two more programs. The first one is just a valid C program without any header file.
What to know how to code without using semicolon?
void main(int a ,int b)
{
if(clrscr(),printf("\nEnter two integers:"),scanf("%d %d",&a,&b))
while(printf("\nSuccessful addition:%d",a+b),getch(),0)
{ }
}
Program without header file?
So continuing in the series of program without, here are two more programs. The first one is just a valid C program without any header file.
| 1 | intmain() | 
| 2 | { | 
| 3 |     return0; | 
| 4 | } | 
The above program will actually compile and run.
 But you will say it did nothing. So lets have a program without header file which prints something.
| 01 | extern"C" | 
| 02 | { | 
| 03 |        intprintf(constchar*format,...); | 
| 04 | } | 
| 05 | 
| 06 | intmain() | 
| 07 | { | 
| 08 |     printf("Hello World"); | 
| 09 |     return0; | 
| 10 | } | 
