logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology See What Others Are Saying!
  • Question
  • What is the difference between realloc() and free()?


  • Correct Answer
  • The free subroutine frees a block of memory previously allocated by the malloc subroutine Undefined results occur if the Pointer parameter is not a valid pointer If the Pointer parameter is a null value, no action will occur The realloc subroutine changes the size of the block of memory pointed to by the Pointer parameter to the number of bytes specified by the Size parameter and returns a new pointer to the block The pointer specified by the Pointer parameter must have been created with the malloc, calloc, or realloc subroutines and not been deallocated with the free or realloc subroutines Undefined results occur if the Pointer parameter is not a valid pointer 


  • More questions

    • 1. Who is responsible for maintaining the Accounts receivable in an organization?
    • Discuss
    • 2. What are the components of DataStage?
    • Discuss
    • 3. Credit sales are recorded as

    • Options
    • A. Accounts Receivable
    • B. Accounts Payable
    • C. Both A & B
    • D. None of the above
    • Discuss
    • 4. Which of the following is not a function of a Warehouse?

    • Options
    • A. Ensuring Profit
    • B. Stabilisation in price
    • C. Risk-bearing
    • D. Storage
    • Discuss
    • 5. What is commercial Bank ?
    • Discuss
    • 6. Which of the following are elements of SQL?

    • Options
    • A. base-table-identifier ::= user-defined-name
    • B. base-table-name ::= base-table-identifier
    • C. boolean-primary ::= comparison-predicate
    • D. All the above
    • Discuss
    • 7. State Bank of India recently launched 'SBI Exclusif'. It is a ____ product.

    • Options
    • A. Wealth Management
    • B. Loan
    • C. Mutual Fund
    • D. Insurance
    • Discuss
    • 8. Describe the use of PL/SQL table?
    • Discuss
    • 9. Name any three PL/SQL exceptions?
    • Discuss
    • 10. Which one of the following sorts rows in SQL?

    • Options
    • A. ORDER BY
    • B. GROUP BY
    • C. SORT BY
    • D. ALIGN BY
    • Discuss


    Comments

    There are no comments.

Enter a new Comment