Dereferences a pointer
Returns the value of a variable
Returns the address of a variable
Multiplies two values
int ptr;
int *ptr;
int &ptr;
int ptr*;
What will be the output of the following code?
int x = 10, y = 20;int *p1 = &x, *p2 = &y;printf("%d", *p1 + *p2)
10
20
30
Compiler error
function(int ptr);
function(int *ptr);
function(*ptr);
function(ptr *int);
1
2
3
Undefined
The value of the variable it points to
The size of the pointer
The memory address of the variable it points to
Garbage value
sizeof(a)
sizeof(a[0])
sizeof(a) / sizeof(a[0])
sizeof(a) * sizeof(a[0])
p is a pointer to an array of 10 integers
p is an array of 10 integer pointers
p is a pointer to 10 integers
p is an array of pointers to 10 integers