Description: c/c++ surface test, many of the classic title, such as/a and b exchanged face questions 2.cpp// how to a, b the value of the exchange, and do not use any intermediate variable?// Analysis:// In short, the use of different or expressions easier to not have to worry about the problem of super-sector.// If:// a = a+ b // b = ab // a = ab // of the shortcomings of doing so is that if a, b are two relatively large number, a = a+ b when super-sector.// Used:// a = a ^ b b = a ^ b a = a ^ b not have to worry about the problem of super-sector, so that is better.// Participate in a number of operations corresponding to the two binary bit different, or, when the corresponding binary bit different, the result is 1. Involved in computing the number of still meeting code// form
To Search:
- [cc++] - C++ Interview subject, ready to find sui
- [CC++mianshi] - Personal collection of Interview Highlig
- [CC++InterviewHandbook] - CC++ Face big test summary. Txt. Brings
- [Cpp--Set] - c++ interview book contains a lot of int
- [Cinterview] - C interview subject for students looking
- [cinterview] - c++ interview, when important, we must l
File list (Check if you may need any files):
面试题
......\a和b交换面试题1.cpp
......\a和b交换面试题2.cpp
......\const面试题1.cpp
......\const面试题2.cpp
......\i++面试题1.cpp
......\i++面试题2.cpp
......\i++面试题3.cpp
......\i++面试题4.cpp
......\i++面试题5.cpp
......\sizeof面试题1.cpp
......\sizeof面试题2.cpp
......\sizeof面试题3.cpp
......\宏定义面试题1.cpp
......\宏定义面试题2.cpp
......\宏定义面试题3.cpp
......\程序设计其他问题面试题.cpp
......\类型转换面试题.cpp
......\编程风格面试题.cpp
......\螺旋队列.cpp
......\赋值语句面试题1.cpp
......\赋值语句面试题2.cpp