Preview question

1. The case sensitive and the special words of the language.

2. the most potential danger of case-sensitive names is when we write a variable in capital letter unintentionally, and then we use non-capital word to call the variable.

4. Alias is the variable that have same address, where the other variable can be used to access same memory allocation

7. Binding time is the place when binding was occurred. While binding is an association between an attribute and an entity.

18.  Blocks is the section that allows to have its own local variables whose scope is minimized.

Problem Set

1.

_student is valid because C language allows variable begins with underscore(_)

Int is not valid, because int is a data type in C

Student is Valid, because it begins with a letter

123student is not valid, because it’s prohibited to  begin a variable with a number in C language

Student123 is valid, because C language allows use number after a letter or an underscore

2. l-value is an expression that point to memory

Example

Int m[2]={1,2};

Printf(“%d”, m+1);

5. static type binding required when we have to bind a variable to a type based on the syntactic form of the variable ‘s name. Dynamic type binding required when we don’t need to declare it with specification.

Advertisements