print ur name without printing in main...
4 posters
Page 1 of 1
print ur name without printing in main...
without using ur name in main..print ur name.....
is there ne preprocessor funda in this???
don give solution as
#define main() main(){puts("name");}
is there ne preprocessor funda in this???
don give solution as
#define main() main(){puts("name");}
$corpion- Posts : 25
Join date : 2009-01-30
Age : 37
Re: print ur name without printing in main...
1)we can also rewrite our own printf which when passed with no argument print answer as name
2)also there exist a function at_exit which is called after main so we can print name there
3)use desstructor as used by rajeev in 1 question at cc forum
2)also there exist a function at_exit which is called after main so we can print name there
3)use desstructor as used by rajeev in 1 question at cc forum
mnnit.rahul- Posts : 51
Join date : 2009-02-01
Re: print ur name without printing in main...
ACTUALLY THIS QUESTION WAS ASKED TO KHATPALANI OF TRONIX..
HE SAID KI SIR TOLD DAT ITS RELATED TO SOME PREPROCESSOR...DAT IS MEANT FOR DOIN THINGS LIKE THIS..
NEONE HAVIN IDEA REGARDING THIS???
HE SAID KI SIR TOLD DAT ITS RELATED TO SOME PREPROCESSOR...DAT IS MEANT FOR DOIN THINGS LIKE THIS..
NEONE HAVIN IDEA REGARDING THIS???
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|