25. How does free() know how much memory to release? There’s no standard way. It can vary from compiler to compiler, even from version to version of the same compiler. …
C Language Pointer
- C ProgrammingInterview Questions and AnswersTechnical Interview Questions and Answers
- C ProgrammingInterview Questions and AnswersTechnical Interview Questions and Answers
C Language Pointer Interview Questions and Answers For Freshers Part-11
by Sby S23. What is a “null pointer assignment” error? What are bus errors, memory faults, and core dumps? These are all serious errors, symptoms of a wild pointer or subscript. Null …
- C ProgrammingInterview Questions and AnswersTechnical Interview Questions and Answers
C Language Pointer Interview Questions and Answers For Freshers Part-10
by Sby S21. What happens if you free a pointer twice? If you free a pointer, use it to allocate memory again, and free it again, of course it’s safe If you …
- C ProgrammingInterview Questions and AnswersTechnical Interview Questions and Answers
C Language Pointer Interview Questions and Answers For Freshers Part-9
by Sby S19. What is the stack? A “stack trace” is a list of which functions have been called, based on this information. When you start using a debugger, one of the …
- C ProgrammingInterview Questions and AnswersTechnical Interview Questions and Answers
C Language Pointer Interview Questions and Answers For Freshers Part-8
by Sby S17. What is the difference between far and near ? Compilers for PC compatibles use two types of pointers. near pointers are 16 bits long and can address a 64KB …
- C ProgrammingInterview Questions and AnswersTechnical Interview Questions and Answers
C Language Pointer Interview Questions and Answers For Freshers Part-7
by Sby S15. Is it better to use malloc() or calloc()? Both the malloc() and the calloc() functions are used to allocate dynamic memory. Each operates slightly different from the other. malloc() …
- C ProgrammingInterview Questions and AnswersTechnical Interview Questions and Answers
C Language Pointer Interview Questions and Answers For Freshers Part-6
by Sby S13. When would you use a pointer to a function? Pointers to functions are interesting when you pass them to other functions. A function that takes function pointers says, in …
- C ProgrammingInterview Questions and AnswersTechnical Interview Questions and Answers
C Language Pointer Interview Questions and Answers For Freshers Part-5
by Sby S9. Is NULL always equal to 0(zero)? The answer depends on what you mean by “equal to.” If you mean “compares equal to,” such as if ( /* … */ …
- C ProgrammingInterview Questions and AnswersTechnical Interview Questions and Answers
C Language Pointer Interview Questions and Answers For Freshers Part-4
by Sby S7. Can you subtract pointers from each other? Why would you? If you have two pointers into the same array, you can subtract them. The answer is the number of …
- C ProgrammingInterview Questions and AnswersTechnical Interview Questions and Answers
C Language Pointer Interview Questions and Answers For Freshers Part-3
by Sby S5. What is a void pointer? A void pointer is a C convention for “a raw address.” The compiler has no idea what type of object a voidpointer “really points …