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. Thanks!! Its very helpful.
View Tutorial          By: Tawfiiq at 2012-07-06 05:29:50

2. Its so very helpful
View Tutorial          By: Anurag at 2011-02-08 04:27:03

3. excellent code.....
View Tutorial          By: Anonymous at 2009-05-07 03:09:01

4. regarding 'TextMessage' and 'MessageConnection' er
View Tutorial          By: gaurav at 2012-04-24 11:57:17

5. i like java language.
View Tutorial          By: deepika at 2014-09-22 15:11:39

6. very good explanation... thnx...
View Tutorial          By: gobu at 2009-04-05 23:43:19

7. @Sonal, as long as the image is stored in a server
View Tutorial          By: alex at 2012-11-07 07:25:40

8. This post is about adding an application icon to a
View Tutorial          By: Rick at 2011-11-04 16:48:16

9. some of the errors above e.g the jasper exception
View Tutorial          By: Robert at 2013-09-14 23:24:57

10. Your example is clear crisp and very helpful..
View Tutorial          By: sridhar at 2009-08-06 08:41:14