 |
|
Oracle Tips by Burleson |
Conducting
the Web Designer Job Interview
Chapter 10: The
Technical
Interview
C Programming Questions
Consider the code segment below. Why does this code print
out that the values are equal? What would you do to correct this
program?
1: #include <stdio.h>
2:
3: main() {
4:
5: int a=5;
6: int b=8;
7:
8: if (a=b) {
9: printf("The two values are equal.\n");
10: } else {
11: printf("The two values are NOT equal.\n");
12: }
13:
14: }
% a.out
The two values are equal.
Skill Level: Low
Expected Answer:
For the answer to this and other Web Designer job
interview questions visit the code depot for the book
http://www.rampant-books.com/book_2004_1_job_web_designer.htm.
 |
For more details and scripts, see my new book "
Oracle
Tuning: The Definitive Reference", over 900 pages
of BC's favorite tuning tips & scripts.
You can buy it direct from the publisher for 30%-off and get
instant access to the code depot. |
|