C/C++ Questions only (Style)
C++ programming on UNIX, C++ Networking,C++ Algorithm Questions and Answers
(Continued from previous question...)
C/C++ Questions only (Style)
1. What's the best style for code layout in C?
2. Is the code "if(!strcmp(s1, s2))" good style?
3. Why do some people write if(0 == x) instead of if(x == 0)?
4. I came across some code that puts a (void) cast before each call
to printf. Why?
5. What is Hungarian Notation''? Is it worthwhile?
6. Where can I get the ``Indian Hill Style Guide'' and other coding
standards?
7. Some people say that goto's are evil and that I should never use
them. Isn't that a bit extreme?
(Continued on next question...)
Other Interview Questions
|