Interview Questions

C/C++ Questions only (Characters and Strings)

C++ programming on UNIX, C++ Networking,C++ Algorithm Questions and Answers


(Continued from previous question...)

C/C++ Questions only (Characters and Strings)

1. Why doesn't "strcat(string, '!');" work?

2. Why won't the test if(string == "value") correctly compare string

against the value?

3. Why can't I assign strings to character arrays?

4. How can I get the numeric (character set) value corresponding to a

character?

5. Why is sizeof('a') not

(Continued on next question...)

Other Interview Questions