Pointers in C (original) (raw)
- A variable that stores the address of another variable
- A variable that stores data directly
- A keyword to create arrays
Which symbol is used to declare a pointer?
What is the output of the & operator?
What is the default value of an uninitialized local pointer?
Which format specifier is used to print an address in C?
What does the following pointer declaration mean?
C `
int *p;
`
- p is a pointer to an integer
Which of these is NOT a valid way to assign NULL to a pointer?
What is a dangling pointer?
- pointer that points to valid memory
- pointer that points to NULL
- pointer that points to freed memory
- pointer that is initialized
Which of the following is true about pointer arithmetic?
- p++ increments the value stored
- p++ moves to next memory block based on data type
- p++ decreases the address
There are 20 questions to complete.
Take a part in the ongoing discussion