OpenTechBook
  • Home
  • Open Books
    • All Open Books

    • Free eBooks
    • Free Magazines
    • Free Journals

    • Submit an Open Book
  • Quizzes
Home » Quiz » C Language Quiz

The function ________ in C changes the size of the memory block pointed to by a given pointer.

Difficulty level
  • realloc()
  • free()
  • malloc()
  • calloc()
The correct option is 'realloc()'. The realloc() function is used to change the size of a previously allocated memory block, making it suitable for resizing dynamic arrays.
Add your answer
Loading...
Facebook Twitter Linkedin Reddit Pinterest
C Language Quiz
Quiz
What is the result of comparing two strings using the '==' operator in C?
In the context of function pointers in C, a callback function is a function that is passed as a(n) ________ to another function.

Related Quiz

  • In C, the function ________ is used to allocate memory for an array of elements and initialize them to zero.
  • Enumerations provide a way to assign ________ to a set of named constants.
  • In the context of function pointers in C, a callback function is a function that is passed as a(n) ________ to another function.
  • The ________ directive can be used in C to include a file only once in a program.
  • In a database application, you need to sort a list of names (strings) in alphabetical order. Which string handling function might be useful in this scenario?

Leave a commentCancel

Your email address will not be published. Required fields are marked *

Hot Quiz

Python QuizPHP QuizServlet QuizData Analyst QuizAppium QuizSpring Boot QuizADO.NET QuizAPI Testing QuizNode.js QuizDatabase Testing QuizAWS Lambda QuizAutomation Testing QuizData Science Statistics QuizWeb Services QuizSoftware Testing QuizC Language QuizR Programming QuizC++ QuizBootstrap QuizAlgorithm Quiz
Copyright © 2024 Open Tech Book
  • About
  • Contact
  • FAQ
  • DMCA
  • Disclaimer
  • Privacy Policy