"The" Book of C

Learn C Programming

  • Get The Book
  • 1st Edition Solutions
    • Solutions
    • Errata
  • Industry Campus Connect
  • About Authors
  • Home

Category: Pointers

  • Home
  • Pointers

Resizing Memory Using Realloc

By : Priyanka Bhaskar Posted On : December 18, 2018April 15, 2019No Comment

realloc() We may need to resize the dynamically allocated memory in our C-program. Resizing can be done to increase as well as decrease the size of dynamically added memory. realloc is the system call that enables us to do the same. Let us begin with understanding the syntax for the same void* realloc (void* ptr,…

Continue Reading

Top

Copyright © 2025 "The" Book of C - WordPress Theme : By Offshore Themes

  • 1st Ed Errata
  • 1st Edition Solutions
    • Arrays
    • Bit By Bit
    • Data Types – The Sequel
    • Dynamic Memory Allocation
    • Files
    • Flowcharts
    • Functions
    • Introduction To Programming
    • Loops
    • Making decisions – if-else
    • More Decisions, Mastering if-else
    • Operators
    • Operators Revisited
    • Pointers
    • Preprocessing and Macros
    • Reading User Input Into Variables
    • Strings
    • Switch Case
    • The Rest Of It
    • User Defined Data Types
    • Variables and Data Types
  • About Authors
  • About The Book of C
  • Buy The Book
  • Industry Campus Connect