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