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
6. This is so phat. Maybe the best explanation ever t
View Tutorial By: Devin Prince III at 2010-08-11 10:01:04
8. Nice explaination of constructor and destructor. B
View Tutorial By: Anon at 2009-03-01 03:50:06
9. i want simple program of function used in recursio
View Tutorial By: manish at 2009-05-19 01:03:19
10. Awesome, I am Impressed with the way the example h
View Tutorial By: Darshan at 2010-07-09 01:34:22