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

Is C language the base for learning C++?
No. C and C++ are two different languages. All most all modern languages are influenced by C language. But we can learn C++ directly without learning C language.
Swathi
0 0
8
What is the difference between a string and an array?
An array is an array of anything. A string is a specific kind of an array with a well-known convention to determine its length. There are two kinds of programming languages: those in which a string is...
Rakes
Who is the inventor of C programming?
Dennis Ritchie is inventor of C programming language.
Shreya
0 0
7
Is it necessary to learn the C language and also C++ before joining an engineering college?
it is not necessary to learn C and C++, but if you want to make your are career in computer then learn C & C++ because these are basic computer language.
J.k.kavyadharshini
Why does execution of a program in C/C++/Java start from only main?
Main function is calling the other functions of he program and compiler gets this direction while Compiling the code. If it does not find main function then it will also not find the other functions in the code. So, main is required in C program.
Isha

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

Ask a Question

Related Lessons

Internet of Things, Social Media Becoming Part of E-Discovery Landscape
The days when e-discovery consisted of handing over copies of e-mails to address Freedom of Information Act (FOIA) requests, compliance regulations or other legal obligations are over. Now, it's just as...

An Interesting discussion about malloc( ) and calloc( )
What are malloc( ) and calloc( )? Simply putting they are the predefined functions in C language. Malloc( ) and calloc( ) are two such functions which are used for more or less identical purpose and...

Operators in C
Operators in C Operator: An operator is a symbol that tells the compiler to perform certain mathematical or logical calculations. Operators are used in programs to manipulate data and variables. The...

Introduction to Programming Languages
What is a Programming Language? A programming language is a formal computer language or constructed language designed to communicate instructions to a machine, particularly a computer. Programming languages...

Creating First Program Using C Language
Step 1: Install and setup Turbo C compiler on your computer. Step 2: Open Turbo C from your Desktop or Programs menu. Select “File” from menu bar and select option “New”. Step...

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