Interview Questions - Statements in C
- Whats short-circuiting in C expressions?
- Whats wrong with the expression a[i]=i++; ? Whats a sequence point?
- Does the ?: (ternary operator) return a lvalue? How can I assign a value to the output of the ternary operator?
- Is 5[array] the same as array[5]?
- What are #pragmas?
- What is the difference between if(0 == x) and if(x == 0)?
- Should we use goto or not?
- Is ++i really faster than i = i + 1?
- What do lvalue and rvalue mean?
- What does the term cast refer to? Why is it used?
- What is the difference between a statement and a block?
- Can comments be nested in C?
- What is type checking?
- Why can't you nest structure definitions?
- What is a forward reference?
- What is the difference between the & and && operators and the | and || operators?
- Is C case sensitive (ie: does C differentiate between upper and lower case letters)?
- Can goto be used to jump across functions?
- Whats wrong with #define myptr int *?
- What purpose do #if, #else, #elif, #endif, #ifdef, #ifndef serve?
- Can we use variables inside a switch statement? Can we use floating point numbers? Can we use expressions?
- What is more efficient? A switch() or an if() else()?
- What is the difference between a deep copy and a shallow copy?
- What is operator precedence?
