adspace


What is the difference between array and pointer?

Answer Posted / Huma Parveen

An array is a collection of elements of the same data type, whereas a pointer is a variable that stores the memory address of another variable. An array can be accessed using its index, while a pointer needs to be dereferenced to access the stored value. However, both arrays and pointers can store and manipulate memory.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

PLS U SENS ME INTERVIEW O. MY EMAIL ADD, SOFIYA.SINGH@GMAIL.COM

2260


Sir,please help me out with the code of this question. Write an interactive C program that will encode or decode multiple lines of text. Store the encoded text within a data file, so that it can be retrieved and decoded at any time. The program should include the following features: (a) Enter text from the keyboard, encode the text and store the encoded text in a data file. (b) Retrieve the encoded text and display it in its encoded form. (c) Retrieve the encoded text, decode it and then display the decoded text. (d) End the computation. Test the program using several lines of text of your choice.

2400


ATM machine and railway reservation class/object diagram

5337


What is pointer to pointer in c with example?

1200


How can I implement sets or arrays of bits?

1119


Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

1183


What is dynamic dispatch in c++?

1140


In C language, the variables NAME, name, and Name are all the same. TRUE or FALSE?

1297


what is ur strangth & weekness

2592


How do you determine the length of a string value that was stored in a variable?

1205


List at least 10 sorting methods indicating their average case complexity, worst case complexity and best case complexity.

2829


hi send me sample aptitude papers of cts?

2252


will u please send me the placement papers to my mail???????????????????

1930


What are pointers? What are different types of pointers?

1266


Is int a keyword in c?

1059