In the expression: int arr[5]; int *p = arr; What does p + 2 represent?
What is the purpose of the const keyword in: int * const p;?
Which scenario demonstrates a dangling pointer?
For function: void modify(int *x) { *x = 20; } If called as modify(&a), what changes?
Which of the following is valid pointer comparison?
Advertisement
In: int *p; *p = 10; What is the issue?
For dynamic 2D array allocation using int arr = (int)malloc(n*sizeof(int*)); what must be done next?
Which of the following is a valid pointer comparison in C?
What will be the output?
int arr[5] = {1,2,3,4,5};
int *p = arr;
p += 2;
printf("%d", *p);
In pointer to function declaration: int (*ptr)(int, int); which statement is correct?
Consider a function void modify(int *x) { *x = 20; } called as modify(&y). What happens?