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. I need a sample jsp(using Struts html tags) in thr
View Tutorial          By: Anil Kumar at 2008-10-23 04:14:51

2. Hi,
this is excellent stuff and I highly ap

View Tutorial          By: Nanda at 2007-11-02 04:58:30

3. Reading the above comments and questions I have my
View Tutorial          By: running on toaster at 2013-04-23 02:20:43

4. very good tutorial
View Tutorial          By: Anonymous at 2009-06-13 01:14:25

5. when I exported the data to excel there is a value
View Tutorial          By: mizhelle at 2015-10-10 13:17:56

6. Hi there, I was able to build this properly but he
View Tutorial          By: Damien at 2012-01-30 17:37:20

7. Thanks
Your solution helped me a lot :)

View Tutorial          By: sendhil at 2010-05-28 01:12:41

8. The arraycopy in a System is static native method
View Tutorial          By: Ashwinkumar.vj at 2011-07-19 09:25:02

9. works for me - thanks !!!!!
View Tutorial          By: Vaneeza at 2011-12-19 17:06:09

10. quite helpful
View Tutorial          By: kezyRoan at 2011-06-11 03:58:52