Comment on Tutorial - Using malloc() Function in C By Abinaya
Comment Added by : leon
Comment Added at : 2012-05-02 19:00:56
Comment on Tutorial : Using malloc() Function in C By Abinaya
First things first, you might want to use malloc(int size_t).
Second and more important is sizeof(char) gives you the size in bytes of a type, this might change someday, and this way you only need to recompile things out. "read about utf 8 and utf 16"
What sizeof does is actually search the type definition in a table and it sees "hmm this type is declared this way,"
Things get cooler with typedef.
- Data Science
- Cloud Computing
- Java Beans
- Mac OS X
- Office 365
- Tech Reviews
Subscribe to Tutorials
1. Can you give me an example to create InetAddress f
View Tutorial By: Vaibhav at 2009-12-15 23:37:49
2. I get this error too, but my scrit doesint use mys
View Tutorial By: Paulius at 2009-04-29 12:35:55
3. i am developing a video streaming pc server to j2m
View Tutorial By: ziathegreat at 2009-05-19 13:19:15
8. can u give a gud example on command line arguments
View Tutorial By: shravan at 2010-04-09 23:11:18