✍️ Get Writing Help
WhatsApp

Global and local variables

1. Which of the following are invalid variable names and why?

Minimum        First.name        n1+n2              &name

doubles          3rd_row                n$                 Row1

fl oat              Sum Total           Row Total       Column-total

2. What would be the value of x after execution of the following statements?

int x, y = 10;

char z = ‘a’;

x = y + z;

3. Explain the following with examples:

(a) Enumerated types

(b) Type def

4. Distinguish between the following:

(a) Global and local variables

(b) Initialization and assignment of variables

(c) Automated and static variables

5. Find errors, if any, in the following declaration statements.

For faster services, inquiry about  new assignments submission or  follow ups on your assignments please text us/call us on +1 (251) 265-5102