--:--









Quiz for Basics of pointers

Course: C Language | Subject: Unit 6 | Topic: Pointers



Logo

Q1: What does a pointer store in C?

Logo

Q2: Which symbol is used to declare a pointer in C?

Logo

Q3: If int *p; is declared, what does p store?

Logo

Q4: Which operator is used to access the value at a pointer address?

Logo

Q5: What is the size of a pointer on a 64-bit system?

Logo

Q6: What does the & operator do in C?

Logo

Q7: Which of these is a NULL pointer?

Logo

Q8: Can two pointers point to the same variable?

Logo

Q9: What is the output of printf("%p", (void*)ptr)?

Logo

Q10: Which pointer type is used when the type of data is unknown?

Logo

Q11: If p is a pointer to int, p+1 moves by how many bytes?

Logo

Q12: What is wild pointer?

Logo

Q13: Can we assign NULL to a pointer?

Logo

Q14: Which operator gives the address of a variable?

Logo

Q15: What will happen if we dereference a NULL pointer?

Logo

Q16: What is a dangling pointer?

Logo

Q17: Which function dynamically allocates memory in C?

Logo

Q18: Can we have a pointer to a pointer?

Logo

Q19: What is the default value of an uninitialized pointer?

Logo

Q20: Which function is used to release dynamically allocated memory?

Are you ready to start test? Set your time limit