Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
LearnOrg-Moodle
/ ? CS1020-08S2
/ ? Quizzes
/ ? Quiz 2 for Group B2 (1pm - 3pm)
/ ? Attempt 1
{
if (x > 0)
myFunc(--x);
printf("%d, ", x);
}
int main()
{
myFunc(5);
return 0;
}
Which is the correct output when the following block of code is executed
int num[5] , *p, i;
p = num;
*p = 10;
p = num + 1;
*p = 20;
p = num;
*(p+2) =30;
for ( i = 0 ; i < 5 ; i++ )
printf ( %d , num[i] );
Choose one answer.
a. 10, 20 , 30
b. 30, 30 , 30
c. null , null , null
d. none of the above********************************
Time Remaining
You are logged in as 080265L LIVERA (Logout)