Thank you very much sir, for the guidance. Yes it works now but I wonder how can such a small proble of not initializing cause the char and double data type not to work properly but int and long would work nicely. What could be the logic behind it?
If you use the same int and long without initializing in vc++ 2005 it will throw you the same issue as you faced for char and double.Because in older compilers it used to assign the int and long by default but latest compilers do not allow using an attribute ,without initialization.