answersLogoWhite

0

Because the stack pointer marks the top of the stack. If it is not initialised, it is not possible to determine where the next stack frame will go.

User Avatar

Wiki User

10y ago

What else can I help you with?

Continue Learning about Engineering

Different types of pointers in c language?

... are usable. void pointer (generic pointer) : a special type of pointer which point to some data of no specific types. void *p; null pointer : a special type of pointer which point nowhere. it is usually used to check if a pointer is pointing to a null or free the pointer during deallocation of memory in dynamic memory allocation; it is define by using the predefine constant NULL int *p=NULL; wild pointer : uninitialized pointer. it hold a garbage value. i.e it is not pointing to any memory location yet. dangling pointer: pointer pointing to a destroyed variable. it usually happen during dynamic memory allocation when the object is destroyed but not free and the pointer is still pointing to the destroy object.


Why are all Header Files not declared in every C Program?

We only include the headers we actually use. It would be impractical to include every single header in every single program.


What must every c program have?

A main function must be present in every C program.


What is the first line of every FORTRAN program and what does it tell the compiler?

The name of the program. For example: program sum ! This is a comment. Your program's code goes here... end program sum


Why do you use a void pointer in a programme?

void is type of pointer that usually means that you can make it point to any data type. When you make a pointer point to somewhere its data type should match with the place where you want it to point. When you dont know the data type where it will point to then you can declare a void pointer and make it point to the data type it want.

Related Questions

When does Full Sail University start?

Full Sail University starts a new class of students in each program at the beginning of every month.


What is at the beginning of every end and at the end of every beginning?

The letter E


When does a mouse pointer change to a pointing hand icon?

As we high light the pointer on the topic or caption


What 3 college teams have hit at least pointer in every game?

Vanderbilt, unlv, Princeton


Which college has scored one 3 pointer in every basketball game?

Vanderbilt, UNLV, and Princeton...


How fast have the continents moved to their current location?

Every year continents move about.. your pointer finger length.


Different types of pointers in c language?

... are usable. void pointer (generic pointer) : a special type of pointer which point to some data of no specific types. void *p; null pointer : a special type of pointer which point nowhere. it is usually used to check if a pointer is pointing to a null or free the pointer during deallocation of memory in dynamic memory allocation; it is define by using the predefine constant NULL int *p=NULL; wild pointer : uninitialized pointer. it hold a garbage value. i.e it is not pointing to any memory location yet. dangling pointer: pointer pointing to a destroyed variable. it usually happen during dynamic memory allocation when the object is destroyed but not free and the pointer is still pointing to the destroy object.


You are at the beginning of every end and live within the end of time. you are also at the beginning and end of every eye. what are you?

The letter 'E'.


If you delete something from your computer such as music and movies does it free up the space on your hard drive completely or does some of it remain?

Answer:When you delete something such as music, video, or documents, a pointer (a small piece of code) for the file itself is what gets sent to the trash. This pointer, along with other pointer for every folder and file on the hard drive, is saved in a section near the beginning of the hard drive and is used by the operating system to create a directory. When you clear out the trash, the OS realizes that the pointer is gone, and then marks the section the file is at as writable. So basically the file never really gets sent to the trash, but gets written over.


What key terms and objectives appear at the beginning of every?

Unit


How can deterministic code be implemented to ensure consistent and predictable outcomes in software development?

Deterministic code can be implemented in software development by writing code that produces the same output every time it is run with the same input. This can be achieved by avoiding randomness, ensuring that all variables are initialized and used consistently, and following strict coding standards to maintain predictability in the program's behavior.


What is pointer and where it is used?

A pointer is a variable used to store a memory address. That is, we can use a pointer variable to refer to another variable (including other pointers). Although many variables within a program have names and can be referred to directly by those names, the majority of variables are anonymous; they have no names we can refer to. For instance, every variable declared on the heap is anonymous, every element of an array is anonymous and every node in a list is anonymous. Without pointers there would be no way to refer to these anonymous variables. Moreover, there would be no way to allocate objects on the heap without pointers. Pointers also make it possible to pass addresses into functions. In C, for instance, all arguments to a function are passed by value, however a pointer's value is a memory address thus pointers allow us to use pass by reference semantics. This makes it possible for a function to refer to an object outwith the local scope of the function.