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.


View Tutorial



Related Tutorials

Java program to get location meta data from an image

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Archived Comments

1. I love http://www.java-samples.com very much , I w
View Tutorial          By: Phongveth at 2009-03-13 13:15:04

2. the default implementation of validate returns nul
View Tutorial          By: Jerry at 2009-02-01 11:12:06

3. sample program exception handling
View Tutorial          By: priya at 2009-09-10 05:40:29

4. This website is great for the students who want to
View Tutorial          By: Parth Patalia at 2009-11-19 21:09:24

5. Excellent Example to explain the functions
View Tutorial          By: manish at 2010-08-05 03:10:43

6. Please provide web.xml file for this example
View Tutorial          By: Girish at 2009-03-08 22:53:03

7. thank for this script
because i will work

View Tutorial          By: r at 2009-06-27 05:07:31

8. YA IT'S VERY USEFUL
View Tutorial          By: JOTHIBASU at 2010-12-20 05:29:38

9. It is very good example to know the concept better
View Tutorial          By: abdulkadir at 2010-01-27 00:56:07

10. I have writtent this code in my jdbc program,

View Tutorial          By: yeshdeep kumar at 2014-11-12 07:46:46