UrbanPro

Learn C Language from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

What is the importance of pointers? People stress more on them. Why they are useful actually what is their importance?

Asked by Last Modified  

Follow 5
Answer

Please enter your answer

Project Development: Custom Training and Software based Project Development Company

Importance of pointers:- Pointers are used in situations when passing actual values is difficult or not desired. To return more than one value from a function. They increase the execution speed. The pointer are more efficient in handling the data types . Pointers reduce the length and complexity...
read more
Importance of pointers:- Pointers are used in situations when passing actual values is difficult or not desired. To return more than one value from a function. They increase the execution speed. The pointer are more efficient in handling the data types . Pointers reduce the length and complexity of a program. The use of a pointer array to character string results in saving of data. To allocate memory and access it( Dynamic memory Allocation). Implementing linked lists, trees graphs and many other data Structures. Pointers allow you to implement sharing without copying i.e. pass by reference v/s pass by copying. This allows a tremendous advantage when you are passing around big arrays as arguments to functions. Pointers allow modifications by a function that is not the creator of the memory i.e. function A can allocate the memory and function C can modify it, without using globals, which is a no-no for safe programming. allow us to use dynamic memory allocation. Pointers obviously give us the ability to implement complex data structures like linked lists, trees, etc Pointers allow ease of programming, especially when dealing with strings. This is due to the fact that a pointer increment will move by the size of the pointee i.e. easy coding to increment to the next memory location of an array, without worrying about how many bytes to move for each data type. I.e. a pointer to a char will move the pointer by a byte, pointer to an int, by the size of the int, etc NOTE that this is important because you do not have to worry about the size of the data types which can vary on different architectures.  Pointers allow us to resize the data structure whenever needed. For example, if you have an array of size 10, it cannot be resized. But, an array created out of malloc and assigned to a pointer can be resized easily by creating a new memory area through malloc and copying the old contents over. This ability is very important in implementing sparse data structures also.  read less
Comments

Computer Science Tutor

Some C programming tasks are performed more easily with pointers, such as dynamic memory allocation cannot be performed without using pointers. So it becomes necessary to learn pointers to become a perfect C programmer.
Comments

Computer Programming Expert and Software Developer

Using pointer we can have direct access to a memory location because they store address of a variable or memory location. Complex hardware programming can easily be done using pointers.
Comments

2nd Year Engineering Student

Pointer is a variable that stores the address of another variable stored. Pointers are very useful in implementing Data Structure. Also, pointers are used to change the actual value of variable (call by address) which you will study in functions.
Comments

Academic Tutor

Pointer is an address (reference) of a memory location. so if you have a pointer say 'p' = "some variable" , what exactly it means is the physical address of the memory location. So if you dereference the pointer by using *p then you can see the exact data at that memory location (I mean if you look...
read more
Pointer is an address (reference) of a memory location. so if you have a pointer say 'p' = "some variable" , what exactly it means is the physical address of the memory location. So if you dereference the pointer by using *p then you can see the exact data at that memory location (I mean if you look what exactly is there in that physical location) . So this way pointers are used in the C programming to dynamically use a memory location read less
Comments

Software Professional / Teaching Enthusiast

Historical reasons: - C Programming language was developed at a time when developers were used to accessing Operating System and Hardware resources directly. Pointer feature largely catered to this audience. Practical reasons: - Pointer feature in C programming language, even to this day, is preferred...
read more
Historical reasons: - C Programming language was developed at a time when developers were used to accessing Operating System and Hardware resources directly. Pointer feature largely catered to this audience. Practical reasons: - Pointer feature in C programming language, even to this day, is preferred by developers for more fine grained control of Hardware and Operating System resources. Therefore C (or its variants) is most commonly used 1. To program Microcontrollers & Microprocessors through the use of C-To-Assembly interpreters/compilers 2. For System Programming i.e. writing low level device drivers, both in User mode and Kernel mode of Operating Systems 3. For writing Hardware Abstraction Layer Efficiency reasons: - 1. Pointers are still one of the efficient and optimized means to manage memory in programs. 2. C Programs execute faster, one of the reasons why they are preferred for low level programming. Pointers play a very critical role in ensuring this high performance read less
Comments

Computer Engineering / Diploma Tutor

Pointer get Important mainly because they can access data directly through their Address. Ex. if you know the address of your Monitor's memory area you can change it's display. and you can use any hardware of your computer through the pointer which can be programmed. So it is important.
Comments

.Net Trainer with 10 Years

Pointers are necessary for dynamic memory location, many data structures, and efficient handling of large amounts of data.
Comments

Tuition Classes

Pointer facility is the real Magic of C Language. Using this facility, C is so powerful. It is very essential feature.
Comments

Pointers are useful in a lot many ways. Few people who have answered this question have their own reasons for the importance of pointers. It all depends on the context you are talking about. The question you've asked is a broad one. Narrow it down in a specific context, or else you need to scroll down...
read more
Pointers are useful in a lot many ways. Few people who have answered this question have their own reasons for the importance of pointers. It all depends on the context you are talking about. The question you've asked is a broad one. Narrow it down in a specific context, or else you need to scroll down all the way down to the last answer to search for the one you are looking for. read less
Comments

View 46 more Answers

Related Questions

What does the modulus operator do?
Modulus operator '%' gives the remainder of any expression. For example : r=10%3; // r is 1 , because if you divide 10 by 3 then the remainder is 1
Sumit
What are the types of linkages in C Programming?
EXTERNAL,INTERNAL,NONE are 3 types of linkage in C programming
Akash
0 0
9
How do I write a C program to print the total number of a single-digit prime number using a loop?
total number of single digit prime number that means your prime number starts from 2 and less than 9 so you can take loop for this range
Momin
0 0
7
How can you be sure that a program follows the ANSI C standard?
The ANSI C standard provides a predefined symbol named __STDC__ that is set to 1 when the compiler is enforcing strict ANSI standard conformance. If you want your programs to be 100 percent ANSI conformant,...
Vibha
How can I try to remember the coding in C language?
One shouldn't try to remember the coding. The right approach is to understand the logical solution to the problem.
Chinmayee
0 0
5

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Some interview questions and answers for fresher level on Pointers
What is a void pointer? Void pointer is a special type of pointer which can reference or point to any data type. This is why it is also called as Generic Pointer. As a void pointer can point to...

What Are IT Industries Performance Metrics?
1. Outstanding Expectation: Eligible to get Promotion easily and good salary hike. Always preferrable to go abroad. 2. Exceed Expectation: Can get Promotion as per schedule of company with good salary...

Pointers and References
Are reference and pointers same? No. I have seen this confusion crumbling up among the student from the first day. So better clear out this confusion at thevery beginning. Pointers and reference...

What is a Programming Language
What is a Language? Language is a communication system of human. What is a programming Language? A programming Language is a formal constructed language design to communicate...

Recursion in C Programming
The process of calling a function by itself is called recursion and the function which calls itself is called recursive function. Syntax of Recursive Function returntype recursive_func () { statements; ...
R

Ravindra Yadav

2 0
0

Recommended Articles

Brilliant Academy is one of the reputed institutes for B.Tech tuition classes. This institute is specialised in delivering quality tuition classes for B.E, Engineering - all streams and Engineering diploma courses. Incorporated in 2012, Brillant Academy is a brainchild of Mr Jagadeesh. The main motto of the academy is to...

Read full article >

Lasya Infotech is a Hyderabad based IT training institute founded in 2016 by O Venkat. Believing in his innovation, passion and persistence and with a diverse blend of experience, he started his brainchild to deliver exemplary professional courses to aspiring candidates by honing their skills. Ever since the institute envisions...

Read full article >

Hadoop is a framework which has been developed for organizing and analysing big chunks of data for a business. Suppose you have a file larger than your system’s storage capacity and you can’t store it. Hadoop helps in storing bigger files than what could be stored on one particular server. You can therefore store very,...

Read full article >

Business Process outsourcing (BPO) services can be considered as a kind of outsourcing which involves subletting of specific functions associated with any business to a third party service provider. BPO is usually administered as a cost-saving procedure for functions which an organization needs but does not rely upon to...

Read full article >

Looking for C Language Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for C Language Classes?

The best tutors for C Language Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn C Language with the Best Tutors

The best Tutors for C Language Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more