Я пытаюсь распечатать свой массив символов, но он просто печатает число, почему?
#include <stdio.h>
#include <stdlib.h>
/* run this program using the console pauser or add your own getch, system("pause") or input loop */
int main(int argc, char *argv[])
{
int counter;
char car[3]={'a','b','c',};
counter = 0;
while(counter < 3)
{
printf("%d\n",car[counter]);
counter++;
}
return 0;
What I have tried:
i have tried changing the values and trying different codes but nothing comes up it just gives me ramdon numbers on the output which i find annoying cuz the values are ABC