Timeline for Sizeof(Array) Prints wrong value [duplicate]
Current License: CC BY-SA 3.0
10 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 12, 2017 at 14:56 | comment | added | chux | using namespace std; is not valid standard C code. | |
| Feb 12, 2017 at 14:52 | vote | accept | athavan kanapuli | ||
| Feb 12, 2017 at 14:35 | comment | added | alk | See the C documentation here. | |
| Feb 12, 2017 at 14:34 | answer | added | Lopan | timeline score: 9 | |
| Feb 12, 2017 at 14:34 | history | closed | alk c Users with the c badge or a synonym can single-handedly close c questions as duplicates and reopen them as needed. | Duplicate of How do I determine the size of my array in C? | |
| Feb 12, 2017 at 14:33 | answer | added | Baffo rasta | timeline score: 2 | |
| Feb 12, 2017 at 14:33 | answer | added | Tony Tannous | timeline score: 4 | |
| Feb 12, 2017 at 14:33 | comment | added | Mohit Jain | Use printf("%zu\n" , sizeof(arr) / sizeof(arr[0]);. %d is used for int. | |
| Feb 12, 2017 at 14:32 | answer | added | StoryTeller - Unslander Monica | timeline score: 2 | |
| Feb 12, 2017 at 14:31 | history | asked | athavan kanapuli | CC BY-SA 3.0 |