ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
int *a[5] refers to
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: int *a[5] refers to
Answer
# 1
the element of 5th row and 0th column
 
Is This Answer Correct ?    1 Yes 3 No
Mastan Vali.shaik
 
  Re: int *a[5] refers to
Answer
# 2
5th element in an array of integer pointers.
 
Is This Answer Correct ?    1 Yes 2 No
Fazlur Rahaman Naik
 
 
 
  Re: int *a[5] refers to
Answer
# 3
int *a[5] means that there are 5 integer pointers[which 
store adresess of only integers] whose adresses are in 
continous locations and each pointer name is accesed by *a
[0],*a[1]....*a[4].for example
a[0]=n means a[0] points to n, a[1]=p means a[1] points to 
p.[where n and p are integers]Let the adress of n and p be 
some 625 and 254 respectively. then a[0] will hold 625 
whose adress is(assume)1000 and a[1]will hold 254 whose 
adress is 1002.similarly the a[2] will hold some adress(if 
u make it to point) with its adress 1004 and a[3] will hold 
some others adress with its adress 1006 and a[4] will hold 
some others adress with its adress 1008.
 
Is This Answer Correct ?    2 Yes 0 No
Vikesh
 
  Re: int *a[5] refers to
Answer
# 4
it simply refers to the value stored in a[4]..."*" denotes 
the value stored and "&" denotes the address of the 
pointer..
 
Is This Answer Correct ?    0 Yes 0 No
Subha Raman
 
  Re: int *a[5] refers to
Answer
# 5
a two dimensional array of 5 rows and n columns
 
Is This Answer Correct ?    1 Yes 0 No
Valli
 
  Re: int *a[5] refers to
Answer
# 6
array of pointers
 
Is This Answer Correct ?    2 Yes 0 No
Nagi
 
  Re: int *a[5] refers to
Answer
# 7
Array of pointers...Points the integer values
 
Is This Answer Correct ?    0 Yes 0 No
Ravi Saini
 
  Re: int *a[5] refers to
Answer
# 8
it refers to the array of addresses or array of pointers
which can hold a 5 element address of integer type only.....
it allocates 5*2=10 bytes of space.... this 2 dosen't refers
that it is an integer so 2 bytes is multiplied.... since any
data type address is always holds 2 bytes of space in most
of the compilers used,..........

thank u
 
Is This Answer Correct ?    1 Yes 0 No
Vignesh1988i
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
find the output of the following program main() { int x=5, *p; p=&x; printf("%d",++*p); } TCS4
Why doesn't the code "int a = 1000, b = 1000; long int c = a * b;" work?  6
Who had beaten up hooligan "CHAKULI" in his early college days?  1
What is a symbolic constant?  1
x=2,y=6,z=6 x=y==z; printf(%d",x) HCL8
Total of how many functions are available in c?  2
what is the definition of storage classes? Wipro2
in C-programming language without using printf statement can we get output r not ? if yes how and if no also how ?  6
number 2 plssssss help !!....using array.. turbo c.. create a program that will accept a number and determine if it is a happy number or an unhappy number.. example: enter a number : 7 7*7=49 then 4 and 9 4*4 and 9*9== 16 + 18 gives you 97 then 9 and 7 9*9 and 7*7 == 81 + 49 gives you 130 then 1 and 3 1*1 and 3*3 == 1 + 9 gives you 10 1*1 gives you 1 sample output: 7= 49= 16+81= 97= 81+49=130 =1+9=10 =1 "7 is a happy number" . if the last number is 2 then the number being inputed is not a happy number.  2
What are .h files and what should I put in them?  3
what is difference b/w extern & volatile variable?? Teleca2
which types of data structure will i use to convert infix to post fix??? IIT3
how to find that no is int or float?  5
what is the difference between #include<stdio.h> and #include "stdio.h" ?  2
what is array? HCL22
While(1) { } when this loop get terminate is it a infinite loop?  4
without a terminator how can we print a message in a printf () function. NIIT5
What is the real difference between arrays and pointers?  11
n=7623 { temp=n/10; result=temp*10+ result; n=n/10 } Wipro4
can we access one file to one directory?  1
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com