answersLogoWhite

0

What are the advantages of using pointers in a program?

Updated: 8/11/2020
User Avatar

Wiki User

10y ago

Best Answer

pointers points to the memory address of another variable.....in functions we have two kind of variables the actual and dummy variable. when we operate on variables..the value of dummy variables are effected, but if we want to make changes in the actual variable then we have to refer to their address..and we can reach to address of the variables by only using pointers.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

10y ago

the main advantage is that the program is free to allocate memory as needed during runtime instead of being limited to what was allocated during compile & link time.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are the advantages of using pointers in a program?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How to write a C program to find largest 2 numbers using pointers?

program to find maximum of two numbers using pointers


Write a c program to copy two strings using pointers?

nahi malum


What will be the program to arrange numbers stored in array in ascending order using pointers?

sorry


How do you write c program to perform sum of elements of matrix using pointers with functions?

i cant write


How do you run graphics program in C?

pro c language to implement linear search using pointers


What are the advantages of using typing tutor program?

amara


How pointers reduce the length of a program?

They don't.


How do you write a C program to copy to strings using pointers?

mystrcpy (char* dest, char* src) { while ((*dest++ = *src++) != '\0); }


Sample program for far pointers?

#include<stdio.h)


Program in c using pointers to interchange 2 values without using third variable?

swap (int *pa, int *pb) { *pa ^= *pb; *pa ^= *pa; *pa ^= *pb; }


What are restricted pointers in C99?

Using this you specify that two pointers can't point on the same address


What are the five advantages and five disadvantage of using case structures to program multiple alternative decision?

what are five advantages and five disavantages of using case structures to multiple alternative dicisions