KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
In c (or maybe c++) , what's the difference between char myarr[16]={0x00}; and char myarr[16]; memset(myarr, '\0', sizeof(myarr)); ?? edit: I ask this because in vc++ 2005 the result is the same.. edit more : and char myarr[16]={0x00,}; ? maybe can get more comprehensive answer and not ambiguous as some answers below refer to this kind of code,ie. put comma just before closing curly braces. Also the result is the same in vc++ 2005.
Tags (comma-separated)
Save Edits
Cancel