This is my ideone code linkhttp://ideone.com/ujEsrVMy code is giving the correct output for all the possible wrong identifiers i can think about.I dont know where i am going wrong.Your help will be appreciated!
All of those should give an error:
1 A _ a_ foo__foo foo_barBaz
I made the necessary changes in the code assuming numbers are not allowed but still getting a wa.
and your updated code is still available via that ideone link above?
Yeah.It is the link to the edited code.
Entertain the idea that input may contain various characters that would never be part of valid variable name like * or #.
Thanks man.Finally got an AC after a days struggle.