You are not logged in.

#1 2015-09-16 05:27:13

husnain
User RankUser RankUser RankUser RankUser RankUser Rank
Administrator
From: Chichawatni,Pakistan
Registered: 2014-10-03
Posts: 8,129
Website

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] = '&#65533;';
   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


You cannot discover the new oceans unless you have the courage to lose the sight of the shore.

2015-09-16 05:27:13

Advertisement
Ads By Google

Re: C Language Arrays And Strings Correct Output:



Board footer