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. why do't you create ActionErrors object like this<
View Tutorial          By: veera reddy at 2011-07-15 12:14:57

2. There are 11 types of people.
Those who kno

View Tutorial          By: alphachap at 2011-03-07 10:53:44

3. i get error like this :
The requested resou

View Tutorial          By: Vera Yunita at 2013-05-20 03:57:18

4. Thanks a lot!!!.Quite helpful article.
keep

View Tutorial          By: Raj at 2008-03-14 03:59:56

5. hi this is very helpful........thank you very much
View Tutorial          By: sumalatha at 2010-06-07 02:16:37

6. The above code works for me. When I run the progra
View Tutorial          By: Avinash at 2011-12-01 10:20:19

7. this is good arraylist
View Tutorial          By: shaffy at 2010-07-31 04:25:17

8. i want to knew about byte datatype. why did not by
View Tutorial          By: pankaj kr tiwari at 2011-12-02 04:37:43

9. Good tutorial.
View Tutorial          By: Pinky at 2010-03-11 10:42:49

10. neded defination in clear
View Tutorial          By: venkat at 2011-07-04 06:31:19