@kevin001 If you want to convert the char to int and a character '1' provides a ascii number that's not 1, you need to remove the offset '0' to realign it to count from 0-9.
How can I prepend char c to char* myChar? I have c has a value of "A", and myChar has a value of "LL".
However, I get the error cannot convert 'char*' to 'char**' in assignment. Is there any idea why?
First off, as others have said, char[2] is not the same as char*, or at least not usually. char[2] is a size 2 array of char and char* is a pointer to a char.
Casting int to char involves losing data and the compiler will probably warn you. Extracting a particular byte from an int sounds more reasonable and can be done like this
In this respect, I think that char name[11] and char *name are same. Or is there anything that I didn't know about it? and Extra Question
www.salyk.gov.kz/ru/pages/findtaxpayers.aspx. Сегодня искали
char res[10]="start "; size_t len = strlen(res); res[len++] = 'A'; /* we overwriting the null-character with another one */ res[len] = '\0'; /* to make the string
Конструкция switch-case — это удобная замена длинной if-else конструкции, которая сравнивает переменную с несколькими константными значениями, например int или char.