KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
What is the difference between: char fast_car[15]="Bugatti"; and char fast_car[15]; fast_car="Bugatti"; Because the second one results with compile error: error: incompatible types when assigning to type ‘char[15]’ from type ‘char *’ While the first one works fine. Putting a string in array in different place than array initialisation would be helpful.
Tags (comma-separated)
Save Edits
Cancel