Hi all,
Has anybody tried printing "Hello" without including any code in the body of the main ?
i.e.
main(){}
I cud not get it as to how to implement the above in C or C++.
|
Go4Expert Founder
|
![]() |
| 16Sep2006,14:46 | #2 |
|
Interesting question and here comes the answer
Code:
#include<stdio.h>
int i = printf("Hello world");
void main(){}
|
|
Newbie Member
|
|
| 16Sep2006,14:59 | #3 |
|
Thanks Shabbir
|
|
Go4Expert Founder
|
![]() |
| 16Sep2006,17:34 | #4 |
|
The pleasure is all mine.
|
|
Contributor
|
|
| 16Sep2006,20:53 | #5 |
|
Quote:
Originally Posted by shabbir
|
|
Go4Expert Founder
|
![]() |
| 16Sep2006,21:08 | #6 |
|
I totally agree on that Aztec but there are some habits which are hard to change and nowadays I dont tend to write lots of main functions
|

