You are not logged in.

#1 2015-09-12 06:22:20

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

C Language Pointer Quiz:

C Programming Quizzes C Language Pointer

Question:
#include<stdio.h>
void main()
{
      int *ptr, a=10;
      ptr = &a;
      *ptr += 1;
      printf("%d, %d", *ptr, a);
}

Option A):
10, 10
Option B):
10, 11
Option C):
11, 11
Option D):
11, 10

Correct Answer is Option C):
11, 11


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

2015-09-12 06:22:20

Advertisement
Ads By Google

Re: C Language Pointer Quiz:



Board footer