GeekInterview.com
Series: Subject: Topic:
Question: 164 of 238

Int *a[5] refers to

A. array of pointers
B. pointer to an array
C. pointer to a pointer
D. none of these

This question is related to TCS Interview
Asked by: Interview Candidate | Asked on: Jun 6th, 2005
Showing Answers 1 - 13 of 13 Answers
venki

Answered On : Jun 22nd, 2006

ans none of these

  
Login to rate this answer.
T.Raghavendra

Answered On : Nov 24th, 2006

array of integer pointers

  
Login to rate this answer.
sami_sharma

Answered On : Dec 16th, 2010

View all answers by sami_sharma

a. array of pointers

  
Login to rate this answer.
LRT

Answered On : Aug 4th, 2011

Array Of Pointers

  
Login to rate this answer.
mrinmoy

Answered On : Aug 29th, 2011

A. array of pointer which has 5 int values.

  
Login to rate this answer.
nitin

Answered On : Aug 29th, 2011

pointer to array

  
Login to rate this answer.
saranya

Answered On : Aug 30th, 2011

it is array of pointers

  
Login to rate this answer.
aradhana tripathi

Answered On : Sep 1st, 2011

It is an array of pointers which can store 5 integer type values indexing start from 0 to 4.

Code
  1. {   int *n[5],a,b,c,d,e;
  2.      n[0]=&a;
  3. n[1]=&b;
  4. n[2]=&c;
  5. n[3]=dc;
  6. n[4]=&e;
  7.     for(int i=0;i>=4;i++)
  8.   {
  9.       printf("value of %d is %d",i,n[i]);
  10. }

  
Login to rate this answer.

Reason:
We know that * indicates a pointer and a[5] denotes a array of size 5.
*a[5] it means that there are 5 memory locations storing the 5 different addresses. So answer is array of pointers.

  
Login to rate this answer.
VANDANA TYAGI

Answered On : Sep 11th, 2011

(b) Pointer to an Array

  
Login to rate this answer.
priya kalra

Answered On : Oct 10th, 2011

array of pointers.....

  
Login to rate this answer.
rakesh sharma

Answered On : Jan 29th, 2012

(A) ARRAY OF POINTERS

  
Login to rate this answer.
vinodjakoe

Answered On : Feb 1st, 2012

View all answers by vinodjakoe

array of pointers

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Ads

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.