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.
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
- 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
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.
The demerit is that they increase complexity of the program.
0
0
- How The Efficiency And Integrity Of The Data Is Maintained At All?
- What Is File-based Approach?
- How Do I Create An SQL Queries That Show: Student Name, Address, And Contact Information For All Students? Student Name And The Certificate Program For Which They Are Registered Student Name And The Courses For Which They Are Registered?
- I Need To Create A System Where Students Can Register For One Of 5 Certificates, Select Courses, And Obtain A Transcript Of The Grades Received For The Courses. Each Student Can Be Enrolled For Only One Certificate. There Are 4 Courses In Each Cert?
- How The Efficiency And Integrity Of The Data Is Maintained At All Times Although The Database Is Used By Varying Organisational Levels? 2 Examples
- What Is Indexed File Organization?
- How The Performance Of Database?
- How Is That The Additional Hardware Affect The Data Base Management System?
- How Do You Automate Starting And Shutting Down Of Databases In Unix?
- What Is Centralize Database Management System?
- What Is Hierarchy Or Structure Of Database?
- Explain How Records And Related Records Are Deleted To Ensure The Integrity?
- What Is The Definition Of Hierarchical?
- What Is Rule Based Query?
- Network Data Model And How Its Structure Contributed To Database Environment Development?
- What Is Relationship In Terms Of Dbms?
- Which Of The Following Statements About Referential Integrity?
- Will The Little Ma Mind Get The Ind Entity?
- Describe Hierarchical Database And It's Example?
- What Are The Advantagem Of Database Management Approach To Organizing?
- Why Does Integrating Flat File Data In A Database Improve Data Integrity?
- What Is Sequential?
- What Do Index Mean?
- How To Remember Stationary And Stationery?
- What Is Program Data Independence?

New Comment - Comments are editable for 5 min.