Home TechnologyProgrammingSQL & Databases Subscribe to RSS

What Are Various Merits And Demerits Of Ponters In Language C?

Pointers used in language C have many merits and demerits.merits are many but demerits are very less.

Answer Question

2 Answers - Sort by: Date | Rating

    C is a programming language for computers. It supports the use of Pointers. Pointers are basically a simple reference that records the address or location of a function or object in memory. The following are the merits of Pointers:
    - They can be dereferenced to access data
    - They can be manipulated by assignment and pointer arithematic.
    - They can be used for Text strings, Dynamic memory allocation etc
    The demerits of Pointers are as follows:
    - Null pointer can result in run-time error.
    - Void pointers can not be dereferenced
    1 0

    Aicha 

    answered 2 years ago

      Pointers are used for call by reference and using these,there is no need to return the value storing it in a variable in the main function.

      The demerit is that they increase complexity of the program.
      0 0

      Ajaypratap 

      answered 2 years ago

        More

        More

           
           

          Ask a Question via Twitter

          Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

          Blurtit Store

          Get T-shirts, hoodies, caps and more at the Blurtit store