in Technology by
When should we use pointers in a C program?

1 Answer

0 votes
by
  • To pass a large structure liked server request or response packet.
  • To implement the linked list and binary trees.
  • To play with GPIO or hardware register.
  • To get the address or update value from the function (call by reference)
  • To create a dynamic array.
  • To create a call back function using the function pointer.

Related questions

0 votes
    Is there a side effect in doing this: C code: struct foo { int k; }; int ret_foo(const struct ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 13, 2022 in Education by JackTerrance
0 votes
    When a website does not accept ctrl+c and ctrl+v what should we do in order to make the website accept the controls Select the correct answer from above options...
asked Dec 24, 2021 in Education by JackTerrance
0 votes
    When should we use the register storage specifier?...
asked Jan 17, 2021 in Technology by JackTerrance
+1 vote
    When should we use the register storage specifier?...
asked Nov 9, 2020 in Technology by JackTerrance
0 votes
    What are the words we should use when we communicate verbally Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    Can we perform arithmetic operation on pointers?...
asked Jan 22, 2021 in Technology by JackTerrance
0 votes
    How is Pointers subtraction in C?...
asked Jan 24, 2021 in Technology by JackTerrance
0 votes
    What is the advantage of pointers in C?...
asked Jan 22, 2021 in Technology by JackTerrance
0 votes
    What is void or Generic pointers in C?...
asked Jan 21, 2021 in Technology by JackTerrance
+1 vote
    What are valid operations on pointers in C Programming?...
asked Nov 9, 2020 in Technology by JackTerrance
+1 vote
    What is the advantage of declaring void pointers in C-Programming?...
asked Nov 9, 2020 in Technology by JackTerrance
0 votes
    Describe Wild Pointers in C Progamming?...
asked Nov 8, 2020 in Technology by JackTerrance
0 votes
    What ais the use of void pointers?...
asked Jan 22, 2021 in Technology by JackTerrance
0 votes
    What are the use of front and rear pointers in CircularQueue implementation? (a) Front pointer points to first ... Framework of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    What are the use of front and rear pointers in CircularQueue implementation? (a) Front pointer points to ... questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
...