answersLogoWhite

0

In programming languages, variables are used to store data values, while pointers are variables that store memory addresses of other variables. Variables directly hold data, while pointers hold the location of where data is stored in memory.

User Avatar

AnswerBot

6mo ago

What else can I help you with?

Continue Learning about Computer Science

What are the benefits of using n in programming languages?

Using n in programming languages allows for the creation of pointers, which are variables that store memory addresses. This can lead to more efficient memory usage and faster program execution, as well as the ability to manipulate data directly in memory. Additionally, pointers enable the implementation of complex data structures and algorithms, making it easier to work with large amounts of data.


Do you have pointer concept in c plus plus language?

Yes. All string variables are pointers as are other arrays.


What is the difference between pointer and function?

Pointers and functions are two entirely different things, similar to comparing cats to oranges. A pointer allows a program to dynamically call functions and/or dynamically load or store data. Pointers are commonly called "dangerous" in most programming circles, which is why newer languages do not explicitly allow programmers to access them (although they may use them internally). They are dangerous because a pointer used incorrectly can corrupt data or crash a system (or at least an application). While this is true, they are not dangerous by themselves, it is the novice programmer's misunderstanding of pointers that is dangerous. Functions are pieces of code that can be used over and over again in various parts of a program without duplicating code. For example, a function that calculates simple interest might be used in several parts of a banking application. This way, if a bug was found in how simple interest was calculated, it could be fixed just once instead of scanning the entire code base to make sure it was fixed everywhere. Functions reduce source code size, executable size, and memory usage. Pointers can dynamically call functions, while functions are pieces of code that can execute. Functions have no concept of pointers, and do not care from where they are called.


Difference between void pointer and null pointer?

A Null pointer has the value 0. void pointer is a generic pointer introduced by ANSI. Before ANSI, char pointers are used as generic pointer. Generic pointer can hold the address of any data type. Pointers point to a memory address, and data can be stored at that address.


How does the use of global pointers in MIPS architecture impact the efficiency and performance of a system?

The use of global pointers in MIPS architecture can impact system efficiency and performance by allowing for easier access to memory locations. This can lead to faster data retrieval and manipulation, improving overall system speed. However, excessive use of global pointers can also introduce potential issues such as memory leaks and security vulnerabilities, which can negatively impact system performance.

Related Questions

Do other programming languages implement pointers?

All programming languages implement pointers, but not all languages allow low-level access to memory through a raw pointer. Java, for instance, uses resource handles and smart pointers rather than raw pointers, however the actual allocation of memory is handled by the Java virtual machine (JVM) so there is no need for low-level raw pointers.


What is the difference between c plus plus and java programming?

Java doesn't have pointers. C++ has pointers.


What are the benefits of using n in programming languages?

Using n in programming languages allows for the creation of pointers, which are variables that store memory addresses. This can lead to more efficient memory usage and faster program execution, as well as the ability to manipulate data directly in memory. Additionally, pointers enable the implementation of complex data structures and algorithms, making it easier to work with large amounts of data.


What are the benefits of using the symbol in programming languages?

Using the symbol in programming languages allows for multiplication, pointer dereferencing, and creating pointers in memory. It helps simplify code and perform mathematical operations efficiently.


Is a pointer a series of dots or hyphens?

A pointer is not a series of dots or hyphens; it is typically represented as an arrow or a specific symbol that indicates direction or reference in programming and documentation contexts. In graphical interfaces, pointers are often visualized as arrows that indicate where the user should focus or click. In programming, pointers refer to variables that hold memory addresses, and their representation depends on the syntax of the programming language used.


What is decleration part in C programming?

pointers.


What are pointers in c programming language?

Pointers are variables that hold the address to a memory location. It makes copying/assignment very efficient, since it eliminates the need for copying entire memory blocks...only the address is copied. This is useful for example for function arguments.


What are the pointers in computer programming using c?

addresses


What are simulating pointers?

Simulating pointers typically refers to techniques used in programming languages that do not support direct pointer manipulation, such as Java or Python. Instead of using pointers to reference memory locations, these languages use object references or indices to achieve similar functionality. For example, arrays or lists can act as simulated pointers by allowing access to elements through their indices. This approach helps manage memory safely while still enabling dynamic data structures.


What is the need to use pointers in C programming?

find the address


What do you need to learn about to become a computer programmer?

Lots of Math and Computer Classes.suggested time in college: four years


What is a pointer in programming?

pointers are the variable which stores the address of another variable.