I. For this problem, assume that sizeof (int) = 4. Given the declaration int num
ID: 3877372 • Letter: I
Question
I. For this problem, assume that sizeof (int) = 4. Given the declaration int numbers[] -11, 2, 3, 4,5; a) What is sizeof (numbers)? b) What is sizeof (numbers [0])? c) What is sizeof (numbers)/sizeof numbers [0])? 2. What is stored in myList after the following C++ code executes? double myList 6 myList [0] = 25; for (int i = 1; i 3) myList [1] = myList [1] /2 ; 2 3 myList [i] 3. Given the declaration: char myString [16] For each set of statements below, first determine if they compile. If they don't, explain why. If they do give the output which is produced. Note: assume the necessary include statements appear the top of the file a) strcpy (myString, "Hello"); coutExplanation / Answer
1)
a)sizeof(numbers) 20
b)sizeof(numbers[0]) 4
c)sizeof(numbers)/sizeof(numbers[0]); 5
2)
2.5 2.5 5 15 30 75
3)
a)
5
10
b)
7
c)
They are not equal
d)
They are equal
4)
a)yes
b)NO
c)Yes
d)Yes
________________Thank You