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. Awesome tutorial
View Tutorial          By: Anonymous at 2012-12-13 06:50:36

2. Thank you so much
View Tutorial          By: Daniel at 2011-02-14 22:47:05

3. thanks
View Tutorial          By: snooker at 2013-02-04 19:45:40

4. Why this exception at run time?

Fri

View Tutorial          By: Sebin Joseph at 2011-04-01 06:03:17

5. awesome.........
View Tutorial          By: tar at 2013-03-14 07:36:56

6. Great ! done a gud job
View Tutorial          By: Manju at 2012-11-02 06:43:58

7. hi in the above example u created a example for do
View Tutorial          By: akki at 2013-02-22 06:19:14

8. plz send java object class with examples
View Tutorial          By: naidu at 2009-07-18 00:00:16

9. as we write:
ob1.t.join();
Does t

View Tutorial          By: abc123 at 2011-04-03 13:33:33

10. First things first, you might want to use malloc(i
View Tutorial          By: leon at 2012-05-02 19:00:56