Arm Community
Site
Search
User
Site
Search
User
Support forums
Keil forum
string setup
State
Not Answered
Locked
Locked
Replies
2 replies
Subscribers
20 subscribers
Views
827 views
Users
0 members are here
Keil C166 Tools
Options
Share
More actions
Related
How was your experience today?
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
string setup
Leonhard Fuchs
over 24 years ago
in a c-module I found the definition of a string:
char acString[20] = "";
For me the initilisation looks a little bit unusual.
My questions at this point are:
- is this allowed in ansi-c?
- what happens? Is only acString[0] set to 0x00
or is the whole string set to zero similar
to memset(acString,0,20)?
- can I be shure that in futur versions of C166
the compiler always treats this in the same manner?
Thank you
...Leo
0
Quote