Go Down

Topic: how to create and array with multiple phone numbers (Read 73 times) previous topic - next topic

mromero

tried and caused error expected unqualified-id before sting constant :
char phone_number[] = "+12222222222","+13333333333","+14444444444";




tried and caused too many initialers for 'char[]'
char phone_number[] = {"+12222222222","+13333333333","+14444444444"};

SurferTim

Code: [Select]
char phone_number[][14] = {"+12222222222","+13333333333","+14444444444"};

PaulS

or
Code: [Select]
char *phoneNumbers[] = {"+12222222222","+13333333333","+14444444444"};

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy