Based on the suggestion provided. It wasn\'t work We mainly targeting to get the
ID: 3727741 • Letter: B
Question
Based on the suggestion provided. It wasn't work We mainly targeting to get the reverse of the operation. Right now this function is converting the characters array to string . We need to reverse the operation by getting the input as the string and to be reversed to character array.The error when implemented the suggestion shown data type issue Based on the suggestion provided. It wasn't work We mainly targeting to get the reverse of the operation. Right now this function is converting the characters array to string . We need to reverse the operation by getting the input as the string and to be reversed to character array.The error when implemented the suggestion shown data type issue void array to_string(byte arrayI, unsigned int len, char bufferl) for (unsigned int i :0; i > 0) & 0x0F; bufferfi*2+0] = nib1Explanation / Answer
/*aurdino program start from below fucntion will read input as string and convert it to char array */
void function(){
String s=readString();/*used to read string*/
/*initialize char array to some predefined size */
unsigned int len=s.length();/*finds the length of the entered string*/
char arr[len+1];/*initialize of char array with length of string plus 1 for null termination*/
s.toCharArray(arr, len+1);/*converting of string to array takes place*/
/* any doubt comment in discussion forum*/
}
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.