Database_JDBC面试题1(国外英文资料).docVIP

  • 5
  • 0
  • 约2.13万字
  • 约 17页
  • 2017-06-05 发布于河南
  • 举报
Database_JDBC面试题1(国外英文资料)

Database_JDBC面试题1 The main feature of C is that it is powerful and flexible. C programs compiled for syntax checking is not as strict as other high-level languages, this gives programmers leave room for flexible, but due to the flexible brought a lot of inconvenience to the program debugging, especially for beginners of C language, often out of some dont even know what was wrong with his mistakes. Look at the wrong program, dont know how to change, I through the learning of C, accumulated some C programming often make mistakes, to fellow students for reference. When writing an identifier, the difference between a large and lowercase letter is ignored. Main () {int a = 5; Printf ( % d , A); The} compiler thinks that a and a are two different variable names and display error messages. C thinks uppercase and lowercase letters are two different characters. Traditionally, the symbol constant name is uppercase and the variable name is lowercase to increase readability. Ignore the type of variable and perform an illegal operation. () Printf ( % d , a % b); Well, % is the remainder, and you get the whole remainder of a over b. The integer variable a and b can be used for the complementary operations, while the real variables do not allow the complementary operation. Confuse character constants with string constants. Char c; C = a; Here is confusing the character constants and string constants, character constants is enclosed by a pair of single quotes a single character, string constant is a sequence of characters enclosed in double quotation marks. C rules to end of the string label, it is by the system automatically add, so the string a actually contains two characters: a and , and assign it to a character variable. The difference between = and = = is ignored. In many high-level languages, the = symbol is used as the relational operator equals. In BASIC, you can write if (a = 3) then... But in C, = is an assignment operator, = = is a relational operator. If (a = = 3) a =

文档评论(0)

1亿VIP精品文档

相关文档