What is the real difference between arrays and pointers?

Answer Posted / pravinash

array is collection of similar datatype. it is a static
memory allocation means we can not increment and decrement
the arry size once we allocated. and we can not increment
the base address, reassign address.

pointer is a dynamic memory allocation. we can allocate the
size as we want, assigning into another variable and base
address incrementation is allowed.

Is This Answer Correct ?    72 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the 4 types of functions?

570


in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.

7388


Explain how can I remove the trailing spaces from a string?

622


ATM machine and railway reservation class/object diagram

4800


What are the types of c language?

552






Which header file is essential for using strcmp function?

934


Can we declare a function inside a function in c?

582


What is the difference between null pointer and wild pointer?

630


Write the syntax and purpose of a switch statement in C.

619


Write a program to print all permutations of a given string.

638


what is a function method?give example?

1911


Explain what are its uses in c programming?

590


how to build a exercise findig min number of e heap with list imlemented?

1608


In c programming language, how many parameters can be passed to a function ?

627


Why is c faster?

590