Sail E0 Webinar
Question
What will be the correct output of the following program?
#include
void main()
{
char str[] = "C EXAMINATION", rev[17];
int i = strlen(str), j=0;
for( ; i>=0; rev[j++] = str[i--])
rev[j] = str[j] ;
puts(rev);
}
Options:
A .  NOITANIMAXE C
B .  NOITANIMAXE
C .  C
D .  No output at all.
E .  Syntax error
Answer: Option D

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers