1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

having problem with dynamic memory allocation

Discussion in 'C' started by macrogeek, Sep 3, 2010.

  1. macrogeek

    macrogeek New Member

    Joined:
    Sep 3, 2010
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Im a beginner level programmer in C and want to know how can I use malloc or calloc functions for dynamic memory allocation without typecasting...?
     
  2. NewsBot

    NewsBot New Member

    Joined:
    Dec 2, 2008
    Messages:
    1,267
    Likes Received:
    1
    Trophy Points:
    0
    Without typecasting I doubt because you are actually getting a void pointer and so it need to be type-casted
     
  3. techgeek.in

    techgeek.in New Member

    Joined:
    Dec 20, 2009
    Messages:
    572
    Likes Received:
    17
    Trophy Points:
    0
    Occupation:
    EOC (exploitation of computers)..i m a Terminator.
    Location:
    Not an alien!! for sure
    Home Page:
    make ur own header file and define the fuctions urself....it can be done but since u r a beginer dnt try to think that way...
     

Share This Page