Thursday 3 January 2013

Important questions in pointers

1. What does static variable mean?
2. What are the differences between malloc() and calloc()?
3. What is the difference between strings and character arrays?
4. Difference between const char* p and char const* p?
5. Can static variables be declared in a header file?
6. How can you determine the size of an allocated portion of memory?
7. When does the compiler not implicitly generate the address of the
first element of an array?
8. What is a null pointer?
9. What is static memory allocation and dynamic memory allocation?
10. How are pointer variables initialized?
11. Difference between arrays and pointers?
12. Is using exit() the same as using return?
13. What is indirection?
14. What is modular programming?
15. What is the difference between declaring a variable and defining a variable?
16. What is an lvalue?
17. Differentiate between an internal static and external static variable?
18. What is the difference between a string and an array?
19. What is an argument? Differentiate between formal arguments
and actual arguments?
20. What are advantages and disadvantages of external storage class?
21. What is a void pointer?
22. When should a type cast not be used?
23. When is a switch statement better than multiple if statements?
24. What is a static function?
25. What is a pointer value and address?
26. What is a modulus operator? What are the restrictions of a modulus operator?
27. Differentiate between a linker and linkage?
28. What is a function and built-in function?
29. Why should I prototype a function?
30. What do you mean by normalisation of pointers?

No comments:

Post a Comment