Question: Please help me to find the right answer: 1. The scope of a variable declared inside of a function is: a) Local - within that
Please help me to find the right answer:
1. The scope of a variable declared inside of a function is:
a) Local - within that function
b) Within that file only
c) global
2. The scope of a variable declared within a for() loop is:
a) Only known within the for() loop
b) Global across all functions in the file containing the code
c) Local to the function containing the for() loop
d) It depends on the variable type
3. Which of the following declares a character string of length 15 but does NOT initialize it?
a) char string1[15];
b) char[] = 15;
c) char[15];
d) char string1[] = 123451234512345;
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
