Question 1 What would be the output of the following code segment? #include int main() { 1 int x [5]- (1, 2, 3, 4, 5); int ptr *; printf("%d", *ptr); return 0;; 9 S 1 pts 26°C Nuageux
D Question 2 What would be the output of the following code segment? #include int main() { int x [5]- (1, 2, 3, 4, 5); int ptr x; printf("%d", "(ptr + 3)); return 0; 1 pts
Question 3 Please complete the following code by using the pointer variable to update the last element of the array to 100. #include int main() { int x [5]-(1, 2, 3, 4, 5): int ptr = x; [Select] return 0: (ptr + [Select] 1 pts ✓) -100:
void moveNext(char* array); int main() { } cout<<"Hello World"; moveNext( return 0; void int i = 0; for(:i< charArray[ 5]=['a', 'b, 2, 'A: 'Z'); (char* }; ; i++)
void [ int i = 0; for(; i < { Jelse 1 if (((array+i)== '2') || ("(array+i)== 'Z')) *(array + i) -= 25; J (char* "(array + :i++) printf("\n%c", "(array + i));
Question 1 Please declare a one dimensional array with the type double, named dblArray, The array should be able to store no more than 20 double values. [Select] Question 2 V [Select] Please complete the following code? 1 pts [[Select] 1 pts
Please complete the following code? [Select] numArray [Select] [Select] 1, 2, 3); Question 3 When declaring an array, every element of the array must be initialized at the same time? 1 pts 1 pts
Question 3 When declaring an array, every element of the array must be initialized at the same time? True R O False Quiz saved at 9:30pm 1 pts Submit Quiz
5 D Question 1 [Select] the function Question 2 [Select] 1 pts The variable is copied during the function call and local of the variable exists in A reference or address to the variable is passed to the function. 1 pts 1 pts
Question 3 What would be the output of the following function? #include void func(int); int main() ( int x - 2; func(&x); printf("%d", x); return 0; void func(int) ( a 100; 1 pts
Question 1 What would be the output of the following code segment? #include int main() { 1 int x [5]- (1, 2, 3, 4, 5);
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am