When declaring a pointer in C, which symbol is used to denote that a variable is a pointer?
- #
- $
- &
- *
In C, the asterisk (*) symbol is used to declare a pointer variable. For example, int *ptr declares a pointer to an integer.
Loading...
Related Quiz
- You are working on a program that processes user input, and you want to ensure that the input string does not exceed a certain length to prevent buffer overflow. Which string handling function would be appropriate to use?
- How does the memory alignment of a structure's members affect its total size?
- In C, what is the effect of using pointers as function parameters with regards to pass by value and pass by reference?
- You are designing a C program to handle a database of employees in a company. Each employee has attributes like name, ID, and salary. What would be an efficient way to manage this data?
- How is data stored in a two-dimensional array in memory?