compare array with pointer?



compare array with pointer?..

Answer / vadivel t

conceptually, pointer is another representation of an array.
In both the concepts data elements can be accessed using
subscripts.

Array knows the boundary of it. But pointer will not know
its boundary, unless otherwise informed explicitly.

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More C Interview Questions

Can the “if” function be used in comparing strings?

0 Answers  


#include<stdio.h> main(0 { printf("\n %d %d %d",sizeof(3),sizeof("3"),sizeof(3)); }

4 Answers   HCL,


hi send me sample aptitude papers of cts?

0 Answers  


two progs are given. one starts counting frm 0 to MAX and the other stars frm MAX to 0. which one executes fast.

5 Answers   Verifone,


How can I call a function with an argument list built up at run time?

0 Answers  






What are the parts of c program?

0 Answers  


what will the following program do? void main() { int i; char a[]="String"; char *p="New Sring"; char *Temp; Temp=a; a=malloc(strlen(p) + 1); strcpy(a,p); //Line no:9// p = malloc(strlen(Temp) + 1); strcpy(p,Temp); printf("(%s, %s)",a,p); free(p); free(a); } //Line no 15// a) Swap contents of p & a and print:(New string, string) b) Generate compilation error in line number 8 c) Generate compilation error in line number 5 d) Generate compilation error in line number 7 e) Generate compilation error in line number 1

1 Answers   IBM,


How do you define structure?

0 Answers  


post new interiew question and aptitude test papers

1 Answers  


what is difference between c and c++

4 Answers  


Explain is it valid to address one element beyond the end of an array?

0 Answers  


Write a c pgm for leap year

11 Answers   College School Exams Tests, IBM, TCS,


Categories