Comment on Tutorial - Using malloc() Function in C By Abinaya



Comment Added by : URS

Comment Added at : 2011-08-24 12:32:55

Comment on Tutorial : Using malloc() Function in C By Abinaya
char *s;
s=(char *) melloc(sizeof(char)*3);

whts the need of siseof() function there, when we know the size of char is 1. can i write like this melloc(1*3);


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. hi,
thier is an error coming with me when i

View Tutorial          By: Tarun at 2013-02-17 03:13:21

2. Thanks!! Its very helpful.
View Tutorial          By: Tawfiiq at 2012-07-06 05:29:50

3. It's so crazy to the adventures of J2ME side and w
View Tutorial          By: jaikarthik at 2009-01-18 23:42:42

4. simple and clear , thanks a lot!
View Tutorial          By: Steiner at 2012-01-29 19:44:57

5. good.
View Tutorial          By: Karthik at 2007-10-20 07:03:20

6. Thanks sir i am understand to jdbc but who will ru
View Tutorial          By: Ranjeet singh at 2012-05-04 07:40:29

7. Good Explanation of code. But object declaration i
View Tutorial          By: Nitesh at 2011-12-28 12:37:09

8. import gnu.io.*;
import java.io.*;
<

View Tutorial          By: Anonymous at 2013-03-29 02:39:00

9. sir can this be the role of java in internet if no
View Tutorial          By: shantanu khanduri at 2012-05-28 07:00:11

10. very good
View Tutorial          By: Deepika at 2012-03-26 07:00:29