You are not logged in.

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

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

C Language Pointer Quiz:

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


Failure is the first step towards seccess.

2015-09-12 06:22:23

Advertisement
Ads By Google

Re: C Language Pointer Quiz:



Board footer