thanks for the reply,sir.
i have bypassed this problem using int variable instead of char.so now i want know why this happened?whats going on internally?
thanks..