compare array with pointer?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

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

631


Why clrscr is used in c?

592


What are the output(s) for the following ? #include char *f() {char *s=malloc(8); strcpy(s,"goodbye")} main() { char *f(); printf("%c",*f()='A'); }

704


What is the code in while loop that returns the output of given code?

1334


What is a pointer variable in c language?

649






What is structure in c definition?

578


How do you define CONSTANT in C?

657


Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.

839


Write the test cases for checking a variable having value in range -10.0 to +10.0?

1822


Where we use clrscr in c?

712


Does c have circular shift operators?

734


What does #pragma once mean?

693


write a program that reads lines(using getline), converts each line to an integer using atoi, and computes the average of all the numbers read. also compute the standard deviation.

1989


Are the variables argc and argv are always local to main?

576


What are the features of c language?

625