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

Subscribe to Tutorials

Related Tutorials

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

Java program using Method Overriding

Archived Comments

1. How to execute above sqlstr file.
View Tutorial          By: shriyash at 2014-02-23 09:32:36

2. very useful...thank you....
View Tutorial          By: jiby at 2012-01-19 06:40:42

3. but it will be very simple if we use pointer in it
View Tutorial          By: Hot Water Systems at 2009-06-01 03:51:48

4. wow !!! worked well
View Tutorial          By: Rajesh at 2012-08-30 10:54:53

5. Wow Its awesome.
Thank you for giving such

View Tutorial          By: sukumar maji at 2010-07-25 12:47:30

6. im having problems with showDialog(int) who can i
View Tutorial          By: Samuel at 2013-06-30 05:13:38

7. hmmmmmm good
View Tutorial          By: Haritha chinnu at 2012-06-30 09:37:49

8. thks for help...
View Tutorial          By: Peps at 2010-01-05 02:28:52

9. Could anyone please forward me the working version
View Tutorial          By: Stephen Machipi at 2010-09-13 06:41:08

10. thank u very much......... its very helpful
View Tutorial          By: ankit at 2012-10-14 20:52:24