pointers in programming - EAS

About 4,540,000 results
  1. Benefits of a pointer

    • Pointers simplify the code and enhance efficiency.
    • Pointers are used with arrays, structures, and functions in order to retrieve strings, trees, and other data.
    • Using a pointer, we can use a function to return multiple values.
    • You can access any memory location which is in the memory of a computer.
    learnetutorials.com/cpp-programming/pointers
    learnetutorials.com/cpp-programming/pointers
    Was this helpful?
  2. People also ask
    How to declare a pointer to a function?
    Pointer to functions. It is possible to declare a pointer pointing to a function which can then be used as an argument in another function. A pointer to a function is declared as follows, type (*pointer-name) (parameter); Here is an example : int (*sum) (); //legal declaration of pointer to function int *sum (); //This is not a declaration of ...
    www.tutorialspoint.com/how-to-declare-a-pointer-to-a-fun…
    What are pointers in C code?

    To solve this question some reasons for the use of the pointer are discussed as follows:

    • A pointer enables the varible, which is used outside the function or used in the another Sub-program.
    • Pointers increase the execution speed of the C-Program and are more efficient.
    • Pointers reduces the length and complexity of the program.
    • Pointers accesses the memory elements very easily.
    • Pointers are more efficient in handling the date table i.e. ...

    More items...

    www.thegeekdiary.com/c-pointers/
    What is the function of a pointer?
    • Pointer is a variable which stores the add of another variable.
    • Pointer contain memory address as their value.
    • Pointers can be used to access & manipulate data stored in the memory.
    www.sciencedirect.com/topics/computer-science/functio…
    What is int pointer?
    int** p: p is a pointer to a pointer to an integer. int* [] p: p is a single-dimensional array of pointers to integers. void* p: p is a pointer to an unknown type. The pointer indirection operator * can be used to access the contents at the location pointed to by the pointer variable.
    www.quora.com/What-is-an-integer-pointer-in-C
  3. See more
    See all on Wikipedia
    https://en.wikipedia.org/wiki/Pointer_(computer_programming)

    In computer science, a pointer is an object in many programming languages that stores a memory address. This can be that of another value located in computer memory, or in some cases, that of memory-mapped computer hardware. A pointer references a location in memory, and obtaining the value stored … See more

    In 1955, Soviet computer scientist Kateryna Yushchenko invented the Address programming language that made possible indirect addressing and addresses of the highest rank – analogous to pointers. This … See more

    In computer science, a pointer is a kind of reference.
    A data primitive (or just primitive) is any datum that can be read from or written to computer memory using … See more

    In many languages, pointers have the additional restriction that the object they point to has a specific type. For example, a pointer may be … See more

    Kinds defined by value
    Null pointer
    A null pointer has a value reserved for indicating that the pointer does not refer to a valid object. Null … See more

    Overview image

    Pointers are a very thin abstraction on top of the addressing capabilities provided by most modern architectures. In the simplest scheme, an See more

    Pointers are directly supported without restrictions in languages such as PL/I, C, C++, Pascal, FreeBASIC, and implicitly in most assembly languages. They are primarily used for … See more

    As a pointer allows a program to attempt to access an object that may not be defined, pointers can be the origin of a variety of programming errors. However, the usefulness of pointers is so great that it can be difficult to perform programming tasks without them. … See more

    Wikipedia text under CC-BY-SA license
    Feedback
  4. https://www.tutorialspoint.com/cprogramming/c_pointers.htm
    • A pointeris a variable whose value is the address of another variable, i.e., direct address of the memory location. Like any variable or constant, you must declare a pointer before using it to store any variable address. The general form of a pointer variable declaration is − Here, type is the pointer's base type; it must be a valid C data type and...
    See more on tutorialspoint.com

    Code sample

    int main () {
      int var1;
      char var2[10];
      printf("Address of var1 variable: %x\n", &var1 );
      printf("Address of var2 variable: %x\n", &var2 );...
  5. https://www.geeksforgeeks.org/c-pointers

    6 rows · Dec 27, 2022 · Pointers in C are used to store the address of variables or a memory location. This variable can ...

    • POINTER NOTATION ARRAY NOTATION VALUE
      * (*nums) nums [0] [0] 16
      * (*nums + 1) nums [0] [1] 18
      * (*nums + 2) nums [0] [2] 20
      * (* (nums + 1)) nums [1] [0] 25
      See all 6 rows on www.geeksforgeeks.org
  6. https://www.programiz.com/c-programming/c-pointers

    Pointers (pointer variables) are special variables that are used to store addresses rather than values. Pointer Syntax Here is how we can declare pointers. int* p; Here, we have declared a …

  7. https://www.geeksforgeeks.org/cpp-pointers

    Oct 25, 2022 · Pointers are symbolic representations of addresses. They enable programs to simulate call-by-reference as well as to create and manipulate dynamic data structures.

  8. https://stackoverflow.com/questions/153874

    Oct 8, 2013 · In computer science, a pointer is a programming language data type whose value refers directly to (or "points to") another value stored elsewhere in the computer memory using …

  9. https://www.guru99.com/c-pointers.html

    Dec 31, 2022 · Types of Pointers in C. Null Pointer. We can create a null pointer by assigning null value during the pointer declaration. This method is useful when you do not have any ... Void Pointer. Wild pointer.

  10. https://study.com/academy/lesson/pointers-in-c...

    Pointers are special kind of variables that store addresses/memory-locations of other variables. An * (asterisk) symbol followed by the variable name is used for designating variables as...

  11. https://www.allaboutcircuits.com/technical...

    Jan 18, 2019 · A pointer is a variable. Like other variables, it has a data type and an identifier. However, pointers are used in a way that is fundamentally distinct from the way in which we use “normal” variables, and we have to include an …

  12. https://stackoverflow.com/questions/850796

    Feb 12, 2015 · Pointers store a memory address, so you would use them whenever you needed the memory address of something. This can be useful for things such as memory …



Results by Google, Bing, Duck, Youtube, HotaVN