You are not logged in.

#1 2015-09-17 03:46:21

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

Determine Output:

http://interviewquestionsanswers.org/quiz/C-Programming http://interviewquestionsanswers.org/qu … uage-Basic

Directions:
Determine Output:

Question:
void main()
{
      char s[]="man";
      int i;
      for(i=0; s[ i ]; i++)
            printf("%c%c%c%c ", s[ i ], *(s+i), *(i+s), i[ s ]);
}

Option A):
Compiler Error
Option B):
mmmm nnnn aaaa
Option C):
mmm nnn aaa
Option D):
None

Correct Answer is Option B):
mmmm nnnn aaaa


Failure is the first step towards seccess.

2015-09-17 03:46:21

Advertisement
Ads By Google

Re: Determine Output:



Board footer