C Languages Interview Questions

29. Is pointer arithmetic a valid one?
 
  • Pointer arithmetic is not valid one.
  • Pointer addition, multiplication and division are not allowed as these are not making any sense in pointer arithmetic.
 
Your Name Your Email-ID
Your Answer
30. When can void pointer and null pointer be used in C?
 
  • Void pointer is a generic pointer that can be used to point another variable of any data type.
  • Null pointer is a pointer which is pointing to nothing.
 
Your Name Your Email-ID
Your Answer
31. Is it possible to create your own header files?
 
  • Yes, it is possible to create a customized header file.
  • Just include in it the function prototypes that you want to use in your program, and use the #include directive followed by the name of your header file.
 
Your Name Your Email-ID
Your Answer
32. A program can contain more return statements?
  Yes. The program can contain any number of return statements.
 
Your Name Your Email-ID
Your Answer
123456789101112


131415 Page 8 of 15