answersLogoWhite

0

How do you declare pointer in c?

User Avatar

Anonymous

13y ago
Updated: 8/20/2019

ujkjkyjljlui kukhjkui

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

How do you declare a pointer to a character string in c?

char *ptr;


How do you declare a pointer variable in c?

int* pint; // instantiate a pointer to an int. float* pflt; // instantiate a pointer to a float.


How can you declare a pointer function?

*function();this declares a pointer function!


How will you declare null pointer in C?

#define NULL ((void *)0) /* defined in <stddef.h> */ const char *mynullvar = NULL;


What does two asterisks mean in C?

It means to declare or dereference a pointer to a pointer. For example: int x = 5; int *xPtr = &x; int **xPtrPtr = &xPtr; printf("%d\n", **xPtrPtr);


Can you control ports through c plus plus?

Yes. If the ports are memory mapped, then you simply need a pointer to that address, and you need to declare the pointer as volatile. If they are I/O mapped, then you need to create an _asm{} block.


Can a pointer be considered a variable?

You can declare pointer-variables, if that's what you mean. Example: char *sample = "Sample";


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);


How do you declare a string array and add elements to it in C plus plus?

You cannot add elements to a fixed array in C or C++. If, however, the array is declared as a pointer to an array, you can add elements by allocating a new array, copying/adding elements as needed, reassigning the new array to the pointer, and deallocating the original array.


Declare the variable longPtr to be a pointer to an object of type long?

long *longPtr;


How can you offset a pointer in C?

Increment or decrement the pointer by the required offset.


What is pointer to a member in objective c?

It is a pointer that points to a member of a structure.