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. give me some logics for programs as soon as possib
View Tutorial          By: nari at 2011-12-07 18:28:03

2. this site is so good...... How can we create a mp4
View Tutorial          By: vikram raj at 2011-01-05 01:03:07

3. Gives a syntax error
View Tutorial          By: Siddharth at 2015-06-10 05:15:00

4. sir i want this following pattern using loops

View Tutorial          By: teju at 2015-09-13 22:46:58

5. it is a big help for us , as a IT student that kn
View Tutorial          By: nelson kent recites at 2012-01-19 08:56:26

6. the tutorial is good and i am satisfied to it i wa
View Tutorial          By: sheraz at 2011-11-07 02:08:55

7. This is very simple code and very much understanda
View Tutorial          By: Prem Anand at 2013-05-04 11:21:16

8. Works thnx :D :D :D :D
View Tutorial          By: nik at 2014-11-09 20:44:29

9. Hi, thanks for your code, I have modified a little
View Tutorial          By: Armando at 2010-08-10 09:34:35

10. Awesome script. works like a charm.


View Tutorial          By: blestab at 2011-03-02 04:32:35