You are not logged in.

#1 2015-09-12 06:52:40

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

Execution Of Program:

C Programming Quizzes C Language Pointer

Directions:
void main()
{
   int a[10], i, *p;
   a[0] = 1;
   a[1] = 2;
   p = a;
   (*p)++;
}

Question:
Which of the following statements are true after execution of the program.

Option A):
a[1] = 2
Option B):
a[0] = 2
Option C):
a[1] = 3
Option D):
a[0] = 3

Correct Answer is Option B):
a[0] = 2


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

2015-09-12 06:52:40

Advertisement
Ads By Google

Re: Execution Of Program:



Board footer