This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
c [2019/07/09 22:49]
paul [GDB]
c [2020/05/29 01:52] (current)
paul [C++ Interview questions]
Line 1: Line 1:
 ====== C and C++ ====== ====== C and C++ ======
 +====C++ Interview questions====
 +I was given a pop quiz by a non-tech interviewer once on c++. Here was his questions:
 +  - What is the name of an invalid pointer? ​
 +      - Weird question and I don't think it's right. Answer he was looking for was null.
 +  - What is the difference between a struct and a class? ​
 +  - What is the keyword to deallocate memory? Lol
 +  - When using a new keyword where is the memory stored, stack or heap? Heap OBVI.
 +  - If a program crashes and you have a core dump and debugger, what is the first thing you do? 
 +      - Look at a backtrace, see where the program crashed, look at what the variable were.
 ===== General C++ =====  ===== General C++ ===== 
  • c.1562712558.txt.gz
  • Last modified: 2019/07/09 22:49
  • by paul