MyChar is an array of char. a is a single char. The two types are completely incompatible. MyChar[i] = a[i]
would work. At least until i gets incremented past 1, then you're accessing a out of bounds.
JasonHippy commented: Thanks Narue, I hadn't come accross that before! +1
Iam3R commented: thanks ,its very helpfull +1
Narue 5,707 Bad Cop Team Colleague
Narue 5,707 Bad Cop Team Colleague
kvprajapati commented: Good suggestion! +6
Narue 5,707 Bad Cop Team Colleague
Iam3R commented: thanks +1
Ancient Dragon commented: Nicely written info :) +25
Narue 5,707 Bad Cop Team Colleague
Narue 5,707 Bad Cop Team Colleague
tux4life commented: To the point ! +9