What is the real difference between arrays and pointers?

Answer Posted / guest

Arrays automatically allocate space which is fixed in size and
location; pointers are dynamic.

Is This Answer Correct ?    202 Yes 25 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Lists the benefits of c programming language?

819


main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

852


pgm to find any error in linklist(in single linklist check whether any node points any of previous nodes instead of next node)

2416


In this assignment you are asked to write a multithreaded program to find the duplicates in an array of 10 million integers. The integers are between -5000,000 to 5000,000 and are generated randomly. Use 10 threads, each thread works on 1000,000 integers. Compare the time needed to accomplish the task with single thread of execution program. Do not include the time to fill the array with integers in the execution time.

2887


How can I automatically locate a programs configuration files in the same directory as the executable?

863


How does selection sort work in c?

809


p*=(++q)++*--p when p=q=1 while(q<=6)

1495


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

782


What is a string?

869


Is a pointer a kind of array?

836


What are the usage of pointer in c?

916


Explain can the sizeof operator be used to tell the size of an array passed to a function?

795


Is main is user defined function?

861


pierrot's divisor program using c or c++ code

1966


What is an arrays?

834