in Technology by
What is the usage of the pointer in C?

1 Answer

0 votes
by

There is a lot of usage of the pointers in C but here I am mentioning some important usage of the pointer in C which you must know.

  • Pointer mostly used in dynamic memory allocation. Using the memory management function we can get the memory during the execution of a program.
  • Pointers can be used to access the array elements.
  • We can access the memory location with the help of C Pointers.
  • Pointers are used in “call by reference”.  In which we can pass the address of a variable ( function, array, ..etc) into a function.
  • Pointers are used in complex data structures like linked lists, trees, etc.

Related questions

0 votes
    What is the usage of the NULL pointer in C?...
asked Jan 21, 2021 in Technology by JackTerrance
0 votes
    Describe the header file and its usage in C programming?...
asked Nov 8, 2020 in Technology by JackTerrance
0 votes
    What features of C++ should be avoided in embedded systems? Please classify the answer by reason such as: ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 20, 2022 in Education by JackTerrance
0 votes
    2. Which of the following symbols does the formula usage in Calc start with? a. : (Colon) b. = (Equal to) C. ; (Semi colon) I Select the correct answer from above options...
asked Dec 2, 2021 in Education by JackTerrance
0 votes
    Given the usage of the following tags in HTML. (a) center (b) html (c) p (d) br Select the correct answer from above options...
asked Nov 29, 2021 in Education by JackTerrance
0 votes
    What is Indirection and Increment/Decrement operators with a pointer in C?...
asked Jan 24, 2021 in Technology by JackTerrance
0 votes
    How can we do Pointer comparison in C?...
asked Jan 24, 2021 in Technology by JackTerrance
0 votes
    How is a Program increment a pointer in C?...
asked Jan 24, 2021 in Technology by JackTerrance
0 votes
    Which type of pointer is the most convenient way of storing the raw address in C programming?...
asked Jan 23, 2021 in Technology by JackTerrance
0 votes
    What is the use of a double pointer (pointer to pointer) in C?...
asked Jan 22, 2021 in Technology by JackTerrance
0 votes
    How to declare a pointer to a function in C?...
asked Jan 22, 2021 in Technology by JackTerrance
0 votes
    What is the advantage of a void pointer in C?...
asked Jan 22, 2021 in Technology by JackTerrance
0 votes
    What is the size of a void pointer in C?...
asked Jan 21, 2021 in Technology by JackTerrance
0 votes
    What is a near pointer in C?...
asked Jan 21, 2021 in Technology by JackTerrance
0 votes
    What is a far pointer in C?...
asked Jan 21, 2021 in Technology by JackTerrance
...