Home > Back-end > For array and structure assignment
For array and structure assignment
Time:11-06
Structure can be conducted through the structure assignment, the array can not, but is can contain an array structure, so structure assignment is contains the array in the body of the structure under assignment, in that case, why now C doesn't allow through the array of array assignment, who can know the reason?
CodePudding user response:
Struct book { Char name [10]. Char auther [10]. A float value. }; Struct book math; Math=(stuck book) {" studymath ", "John", 45.3};
CodePudding user response:
Oh, yes, with defined array assigned to a new number
CodePudding user response:
Oh, yes, with the defined array assignment to the new array