the output shows a no. 170 and a ASCII character corresponding to it. Even if we change the character we get the same no. 170. I know I am int variable wrongly but it is just a curiosity why does it shows 170. If we use float or char variable it shows an error.Code:main() { int i = "a"; printf("%d %c",a,a); getch(); }
I am usinng turbo c++ in windows xp.
thanks a lot
bye n take care