You are not logged in.
- Topics: Active | Unanswered
Pages:: 1
#1 2015-09-16 04:53:49
C Language Arrays And Strings:
C Programming Quizzes C Language Arrays And Strings
Directions:
#include<stdio.h>
void main()
{
int a[5] = {5, 1, 15, 20, 25};
int i, j, m;
i = ++a[1];
j = a[1]++;
m = a[i++];
printf("%d, %d, %d", i, j, m);
}
Question:
What will be the output of the program?
Option A):
1, 2, 5
Option B):
3, 2, 15
Option C):
2, 1, 15
Option D):
2, 3, 20
Correct Answer is Option B):
3, 2, 15
Failure is the first step towards seccess.
Offline
2015-09-16 04:53:49
- Advertisement
- Ads By Google
Re: C Language Arrays And Strings:
\n
Pages:: 1