I did initialize i. Just to be safe, I even set it to zero just now after your post, still got the error.
Code:#include <stdio.h> #include <string.h> int main() { char num[]= "9781552859544"; int i=0; for (; i<12; i++) { printf("%s", num[i]); } return 0; }