} }; int main(int c, char **v) { abc a; if(c<1) { cout<<" Error can not accept it "< exit(1); } cout<<" its in main program "< a.main();
return 0; } ">
what will be output of the following code#includeusing namespace std;class abc{ public : void main() { cout
Avaited
aparna
Oct 11th, 2006
The code mentioned would give errors while compiling. But when i have done some minor modifications to successfully compile the code, I was surprised to c that this code works fine.Later i had to come...
jayq
Sep 17th, 2006
The program you supplied has many type'o's so it will output only compile time errors.However if you fix the syntax, there'll be no controversy in this source : it ALWAYS outputs : its in main program...