You are not logged in.
- Topics: Active | Unanswered
Pages:: 1
#1 2015-09-12 05:59:31
Determine Output:
C Programming Quizzes C Language Pointer
Directions:
main()
{
char *str1 = "abcd";
char str2[] = "abcd";
printf("%d %d %d", sizeof(str1), sizeof(str2), sizeof("abcd"));
}
Question:
Determine Output:
Option A):
2 4 5
Option B):
5 5 5
Option C):
2 4 4
Option D):
2 5 5
Correct Answer is Option D):
2 5 5
Failure is the first step towards seccess.
Offline
2015-09-12 05:59:31
- Advertisement
- Ads By Google
Re: Determine Output:
\n
Pages:: 1