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++.
Interesting question and here comes the answer Code: #include<stdio.h> int i = printf("Hello world"); void main(){}
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