You are not logged in.

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

hasnain
Administrator
From: Chichawatni
Registered: 2014-10-13
Posts: 8,355
Website

C Language Arrays And Strings Correct Output:

http://interviewquestionsanswers.org/quiz/C-Programming http://interviewquestionsanswers.org/qu … nd-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


Failure is the first step towards seccess.

2015-09-16 05:27:13

Advertisement
Ads By Google

Re: C Language Arrays And Strings Correct Output:



Board footer