why we use pointer in c

Answer Posted / manjulatha

use of pointers makes the code more efficient and compact.
1.to acess array elements
2. to return more than one value to a function.
3. to acess dynamically allocated memory.
4. to implement data structures like linked lists,trees.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of functions are there in c?

593


On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area

675


What is meant by errors and debugging?

657


What is array in C

719


What is the difference between array and linked list in c?

615






Suggesting that there can be 62 seconds in a minute?

608


How variables are declared in c?

580


What is difference between structure and union in c programming?

579


What is the explanation for prototype function in c?

579


Place the #include statement must be written in the program?

578


What is the use of gets and puts?

612


1) write a program to generate 1st n fibonacci prime numbers using Nested if 2) write a program to generate twin prime numbers from m to n using nested if 3) write a program to check whether a given integer is a strong number or not using nested if 4) Write a program to generate prime factors of a given integer using nested if 5)write a program to generate prime numbers from m to n using nested if 6)write a program to generate perfect numbers from m to n using nested if 7)write a program to generate the pallindromes from m to n using neste if 8)write a program to generate armstrong numbers from m to n using nested if 9)write a program to generate strong numbers from m to n using nested if

3987


Write a c program to demonstrate character and string constants?

1693


What is meant by keywords in c?

631


What is exit() function?

570