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 is C language?
it is a computer programming language, supporting structured programming, lexical variable scope and recursion, while a static type system prevents many unintended operations
Uday
Can an ECE graduate with some knowledge of C language learn SQL?
Yes ECE graduate student learn SQL languuage bcuz SQL is. A structured query language. it all query depends upon the logic. In which table is used Nd database is maitained
Anand
0 0
5
What is the best website to learn c language?
In case of problems you will face while making programs, you may take help of google. There may be the situation when you need a helping hand to make clear the basic concepts of programming and internal...
Nom
Why is C still so popular?
C remains popular for several reasons, and its enduring popularity can be attributed to a combination of historical significance, efficiency, and versatility. Here are some key reasons why C is still widely...
A
0 0
6
What are the control statements in C language?
The if statement, for loop, while loop, switch statement, break statement, and continue statement are C's most widely used control statements.
Jitender
0 0
6

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

Ask a Question

Related Lessons

Functions In C Programming
A C-language program is nothing but collection of Function, these are the building blocks of a ‘C’ program. Generally, a function mans a task. “Function is a...

Pointers Concept
Every variable has a memory location and every memory location has its address defined which can be accessed using ampersand (&) operator, which denotes an address in memory. Consider the following...

Dynamic Memory Allocation in C using malloc()
#include <stdio.h>#include <conio.h>//#include <malloc.h> OR#include <stdlib.h>void main(){ int *ptr, i, n, sum = 0; printf("how many elements ? "); scanf("%d", &n);...

Programing Languages Learning Tricks
You want to learn that new language or library or framework as soon as possible, right? That’s understandable. Fortunately, there are a handful of tips that can help you to better retain all of that...

Harshal G.

0 0
0

Software Development Training In Jaipur
Satyam Web Solution provides website designing &development and software designing &development training in Jaipur for various stream’s students. MCA 6 month Industrial Training/Internship B....

Recommended Articles

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 >

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 >

Microsoft Excel is an electronic spreadsheet tool which is commonly used for financial and statistical data processing. It has been developed by Microsoft and forms a major component of the widely used Microsoft Office. From individual users to the top IT companies, Excel is used worldwide. Excel is one of the most important...

Read full article >

Software Development has been one of the most popular career trends since years. The reason behind this is the fact that software are being used almost everywhere today.  In all of our lives, from the morning’s alarm clock to the coffee maker, car, mobile phone, computer, ATM and in almost everything we use in our daily...

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