You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
-
1I believe you're trying to assign a string literal as an element of an int array.Mike Kwan– Mike Kwan2013年01月08日 11:13:05 +00:00Commented Jan 8, 2013 at 11:13
-
@unwind: pptr->roll_id[0-9]=0; // can i do this without loopSwetha.P– Swetha.P2013年01月08日 11:16:40 +00:00Commented Jan 8, 2013 at 11:16
-
1This is wrong! There are no character strings in the question, and braced-enclosed initializer lists are not for assignment.acraig5075– acraig50752013年01月08日 11:37:11 +00:00Commented Jan 8, 2013 at 11:37
-
@MikeKwan Thanks, must have mis-read the OP's code in some way.unwind– unwind2013年01月09日 13:22:35 +00:00Commented Jan 9, 2013 at 13:22
-
@acraig5075 Fixed the string mis-match, must have been confused yesterday. But yes, compound literals ("brace-enclosed initializer lists") are fine from C99, as I say.unwind– unwind2013年01月09日 13:23:22 +00:00Commented Jan 9, 2013 at 13:23
lang-c