Dereferences a pointer
Returns the value of a variable
Returns the address of a variable
Multiplies two values
The value of the variable it points to
The size of the pointer
The memory address of the variable it points to
Garbage value
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
sizeof(a)
sizeof(a[0])
sizeof(a) / sizeof(a[0])
sizeof(a) * sizeof(a[0])
function(int ptr);
function(int *ptr);
function(*ptr);
function(ptr *int);
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
1
2
3
Undefined
int ptr;
int *ptr;
int &ptr;
int ptr*;