You are not logged in.
- Topics: Active | Unanswered
Pages:: 1
#1 2015-09-16 04:54:36
C Language Arrays And Strings Quiz;
C Programming Quizzes C Language Arrays And Strings
Directions:
#include <stdio.h>
int main(void)
{
char p;
char buf[10] = {1, 2, 3, 4, 5, 6, 9, 8};
p = (buf + 1)[5];
printf("%d", p);
return 0;
}
Question:
What will be the output of following program code?
Option A):
None
Option B):
9
Option C):
5
Option D):
6
Correct Answer is Option B):
9
Failure is the first step towards seccess.
Offline
2015-09-16 04:54:36
- Advertisement
- Ads By Google
Re: C Language Arrays And Strings Quiz;
\n
Pages:: 1