You are not logged in.

#1 2015-09-17 05:58:47

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

C Language Basic:

C Programming Quizzes C Language Basic

Directions:
Determine Output:

Question:
void main()
{
      static char *s[] = {"black", "white", "yellow", "violet"};
      char **ptr[] = {s+3, s+2, s+1, s}, ***p;
      p = ptr;
      ++p;
      printf("%s",*--*++p + 3);
}

Option A):
ck
Option B):
ow
Option C):
et
Option D):
te

Correct Answer is Option A):
ck


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

2015-09-17 05:58:47

Advertisement
Ads By Google

Re: C Language Basic:



Board footer