C Programming Question and Answers

93. 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
94. Is void pointer arithmetic a valid one?
  Arithmetic operation on void pointer is not valid one. Void pointer is a generic pointer. It is not referring int, char or any other data type specifically. So, we need to cast void pointer to specific type before applying arithmetic operations.
 
Your Name Your Email-ID
Your Answer
95. What is an endless loop?
  An endless loop can mean two things. One is that is was designed to loop continuously until the condition within the loop is met, after which a break function would cause the program to step out of the loop. Another idea of an endless loop is when an incorrect loop condition was written, causing the loop to run erroneously forever. Endless loops are oftentimes referred to as infinite loops.
 
Your Name Your Email-ID
Your Answer
96. What is pointer linking with operating system?
  When we declare a null pointer it addresses the 0 address which is the address of operating system so we cannot use that address this is what the pointer is linked to OS.
 
Your Name Your Email-ID
Your Answer