How do you declare a pointer variable in C?
- Using the % operator
- Using the & operator
- Using the * operator
- Using the -> operator
In C, you declare a pointer variable using the * operator. For example, int *ptr; declares a pointer to an integer.
Loading...
Related Quiz
- A pointer in C holds the ________ of a variable.
- A ________ allows multiple variables to share the same memory location.
- How does a double pointer differ from a single pointer?
- When using pointers to structures, the ________ operator is used to access the members of the structure.
- The strlen function returns the length of a string, excluding the ________.