#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
Quote: printf("%d\n",car[counter]);
printf("%c\n",car[counter]);
'a'
'b'
'c'
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)