>if(i=a)
This is assigning the value of a to i and then evaluating whether i is nonzero. Use if(i==a).
Why do you take input into an array of int if it is supposed to be an array of char?
>void main()
Use int main().
Reputation Points: 2780
Solved Threads: 312
long time no c
Offline 4,790 posts
since Apr 2004