You are not logged in.
Pages:: 1
#1 2015-09-17 04:25:03
C Language Basic Quiz Question.
C Programming Quizzes C Language Basic
Directions:
Determine Output:
Question:
void main()
{
char *str1 = "abcd";
char str2[] = "abcd";
printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));
}
Option A):
2 4 5
Option B):
2 5 5
Option C):
2 4 4
Option D):
5 5 5
Correct Answer is Option B):
2 5 5
You cannot discover the new oceans unless you have the courage to lose the sight of the shore.
Offline
2015-09-17 04:25:03
- Advertisement
- Ads By Google
Re: C Language Basic Quiz Question.
\n
Pages:: 1