View Single Post
  #13 (permalink)  
Old Mon Dec 12, 2011, 02:06am
ga314ref ga314ref is offline
Official Forum Member
 
Join Date: Nov 2003
Posts: 115
Quote:
Originally Posted by jTheUmp View Post
Computer programmer humor. If you're writing computer code, you get to declare a variable as a specific type, and the type you declare has certain (that may be different for other types of variables).

Code:
char string[4] = "5", 
char string[4] = "05"
These are examples of character strings. In this case, each one is 4 characters long. In these examples, we have " 5" and " 05" respectively. Since character strings are compared literally, these two values are NOT identical.
Those are actually arrays.
Reply With Quote