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

4mo 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.


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 is the need to use pointers in C programming?

find the address


What is a pointer in programming?

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


What is meant by pointers in c language?

Variables (or constants) that contain addresses.


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

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


Difference between array and pointers in c plus plus?

A pointer is simply a variable that can store a memory address and has the same purpose in both languages. The only real difference is that C++ pointers can point at objects (instances of a class) and indirectly invoke their methods, whereas pointers in C (which is not object oriented) cannot.