String vs. string


i see mentioned on board @ least every other day - using strings rather strings can cause heap big trouble. because strings exist in program or, problems arise when strings manipulated?

in snippet attached strings used print menu text. potential trouble?

code: [select]
string screens[numofscreens][2] = {{"motor voltage","volts"}, {"motor current", "amps"},
{"motor rated hp","hp"},{"overload temp.","degc"}, {"accel time", "secs"}, {"restart time","mins"},
{"analog out. curr.","ma"},{"input temp.","degc"}, {"run time", "hours"}, {"start times","times"}};

youtube link source tutorial

those ok question becomes why use string there anyway. there's no advantage on char arrays. , char arrays use less ram.


Arduino Forum > Using Arduino > Programming Questions > String vs. string


arduino

Comments

Popular posts from this blog

Flip address is out of range arduino uno r3

Arduino Uno not uploading

Indesign and MathType fonts