MCQ Single Best Answer Not Set

QWhat will be the correct output of the following program?

#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);
}

ID: #1443 String in C Language 1,207 views
Question Info
#1443Q ID
Not SetDifficulty
String in C LanguageTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A NOITANIMAXE C
  • B NOITANIMAXE
  • C C
  • D No output at all.
Correct Answer: Option D

Explanation

No output at all.

Share This Question

Challenge a friend or share with your study group.