For example, I have a string containing "184553", how do I go about extracting the 3rd character "4" from string string and assigning it to another variable?
I have tried the following code but it does not work, the system crashes:
char string[6] = "184553";
printf("%s",string[2]); // Expecting it to print "4"
Any help??