length arduino
String myString = "text"; //make a stirng
int stringLength = myString.length(); //get length from string
length arduino
String myString = "text"; //make a stirng
int stringLength = myString.length(); //get length from string
length of an array arduino
This program prints out a text string one character at a time. Try changing the text phrase.
char myStr[] = "this is a test";
void setup() {
Serial.begin(9600);
}
void loop() {
for (byte i = 0; i < sizeof(myStr) - 1; i++) {
Serial.print(i, DEC);
Serial.print(" = ");
Serial.write(myStr[i]);
Serial.println();
}
delay(5000); // slow down the program
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us