You are not logged in.
- Topics: Active | Unanswered
Pages:: 1
#1 2015-09-16 05:27:13
C Language Arrays And Strings Correct Output:
C Programming Quizzes C Language Arrays And Strings
Directions:
What will be the correct output of the following program?
Question:
#include<string.h>
void main()
{
char str[] = "C EXAMINATION", rev[17];
int i = strlen(str), j=0;
for( ; i>=0; rev[j++] = str[i--]);
rev[j] = '�';
puts(rev);
}
Option A):
Syntax error
Option B):
NOITANIMAXE
Option C):
NOITANIMAXE C
Option D):
No output at all
Correct Answer is Option D):
No output at all
Failure is the first step towards seccess.
Offline
2015-09-16 05:27:13
- Advertisement
- Ads By Google
Re: C Language Arrays And Strings Correct Output:
\n