please tell me the answer of this question.it is irritating me a lot. i have searched many books but not getting it.please help!!
gourav1
-12
Posting Whiz in Training
Recommended Answers
Jump to PostIs that the exact question you have, or are you paraphrasing it into incoherence?
Jump to PostAn array is just a pointer. The only difference is that arrays always point to the same memory and will have a static number of elements.
int main(int argc, char** argv) { int* ptr; //A pointer to an int. int array[4] = {2, 4, 6, 8}; //A …
Jump to PostAn array is just a pointer.
Wrong. An array name when used in value context is converted to a pointer to the first element. But an array is not a pointer, which is easily proven by switching to an object context:
#include <stdio.h> int main(void) { int …
All 11 Replies
Narue
5,707
Bad Cop
Team Colleague
Tumlee
42
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
Tumlee
42
Junior Poster in Training
Narue
5,707
Bad Cop
Team Colleague
gourav1
-12
Posting Whiz in Training
Narue
5,707
Bad Cop
Team Colleague
gourav1
-12
Posting Whiz in Training
Narue
5,707
Bad Cop
Team Colleague
aspire1
36
Light Poster
gourav1
-12
Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.