You are not logged in.
- Topics: Active | Unanswered
Pages:: 1
#1 2015-09-17 05:55:16
C Language Basic Quiz Question.
C Programming Quizzes Multiple Choice set of C Language Basic questions
Directions:
Determine Output:
Question:
void main()
{
int a[] = {10,20,30,40,50}, j, *p;
for(j=0; j<5; j++){
printf("%d" ,*a);
a++;
}
p = a;
for(j=0; j<5; j++){
printf("%d" ,*p);
p++;
}
}
Option A):
10 20 30 40 50 10 20 30 40 50
Option B):
10 20 30 40 50 Garbage Value
Option C):
Error
Option D):
None
Correct Answer is Option C):
Error
Failure is the first step towards seccess.
Offline
2015-09-17 05:55:16
- Advertisement
- Ads By Google
Re: C Language Basic Quiz Question.
\n
Pages:: 1