Quote Originally Posted by jamadagni
For example, this will not be true: if char s[]="hello"; then s[3] = *(s + 3) -- correct?
No, s is also a pointer. This inconsistency is a real problem in C and C++.

Qt Code:
  1. #include <stdio.h>
  2.  
  3. int main()
  4. {
  5. char s[] = "hello";
  6.  
  7. printf( "%c\n", s[3] );
  8. printf( "%c\n", *(s+3) );
  9.  
  10. return 0;
  11. }
To copy to clipboard, switch view to plain text mode