Int *a[5] refers toA. array of pointersB. pointer to an arrayC. pointer to a pointerD. none of these

This question is related to TCS Interview

Showing Answers 1 - 40 of 40 Answers

venki

  • Jun 22nd, 2006
 

ans none of these

  Was this answer useful?  Yes

T.Raghavendra

  • Nov 24th, 2006
 

array of integer pointers

  Was this answer useful?  Yes

LRT

  • Aug 4th, 2011
 

Array Of Pointers

  Was this answer useful?  Yes

mrinmoy

  • Aug 29th, 2011
 

A. array of pointer which has 5 int values.

  Was this answer useful?  Yes

nitin

  • Aug 29th, 2011
 

pointer to array

  Was this answer useful?  Yes

saranya

  • Aug 30th, 2011
 

it is array of pointers

  Was this answer useful?  Yes

aradhana tripathi

  • 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. }

  Was this answer useful?  Yes

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.

  Was this answer useful?  Yes

VANDANA TYAGI

  • Sep 11th, 2011
 

(b) Pointer to an Array

  Was this answer useful?  Yes

priya kalra

  • Oct 10th, 2011
 

array of pointers.....

  Was this answer useful?  Yes

rakesh sharma

  • Jan 29th, 2012
 

(A) ARRAY OF POINTERS

  Was this answer useful?  Yes

Beauty

  • Mar 14th, 2020
 

B) Pointer to an array

  Was this answer useful?  Yes

Give your answer:

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

 

Related Answered Questions

 

Related Open Questions