answersLogoWhite

0

How function pointer is represented?

Updated: 8/20/2019
User Avatar

Wiki User

7y ago

Best Answer

A pointer's type does not affect how an address is represented, it affects how the object at that address is to be interpreted. As such, function pointers are represented no differently to any other type of pointer. If the system uses 32-bit addressing than a pointer is 32-bit variable regardless of the type it refers to.

User Avatar

Wiki User

7y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How function pointer is represented?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How can you declare a pointer function?

*function();this declares a pointer function!


What is the difference bw function pointer and function of pointer?

function pointer is a variable that hold the address of any function which declared in the program but function pointer is the array of the function that accept the run time size of the function.


What is the difference between a function pointer and a pointer to a function?

A pointer to a function is the memory address that stores the address of a function, while the pointer itself is a function pointer.A pointer to a function might be defined as "int (*pf)(int, int);", while to actually point to the function, you would use a function pointer, such as "pf = &func;".


C program pointers to pointers examples?

Pointer to Pointer is a double pointer, denoted by (**). Pointer stores the address of the variable and pointer to pointer stores the address of a pointer variable and syntax can be given as int **ptr2ptr;


Pointer to pointer in c?

Usable. A prominent example is param argv of function main.


Function of pointer multi-tester?

TARUB


Which function is used to determine the position of the put pointer in a file in c plus plus?

The function ftell returns the position of the file pointer for a file.


A pointer to function which receives an int pointer and returns a float pointer?

float *(*funptr)(int *); float *fun (int *); funptr= fun;


How do declare function pointer having two integer parameters and returning integer pointers?

// declare a function int* function(int, int); or int* (function)(int, int); // declare a pointer to a function int* (*pointer_to_function)(int, int);


What is the Use of static function?

A static function is a member function that is not associated with any instance of the class; it has no this pointer.


What is the datatype of the pointer returned by malloc function?

void


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.