Linked Questions

7 votes
4 answers
33k views

Would they work differently on C and C++?
Raghav Sharma's user avatar
11 votes
4 answers
4k views

When I read books about C language, the two level pointer bothered me a lot. char s[5][5]; char *s[5]; char (*s)[5]; so what is the difference between them?
storen's user avatar
  • 1,045
6 votes
2 answers
18k views

I totally understand what is "int *p[3]" ( p is an array of 3 pointer meaning we can have 3 different rows of any number of ints by allocating the memory as our size of different rows). My confusion ...
zeal's user avatar
  • 485
6 votes
3 answers
3k views

I recently came across the following: int ( *array )[10] = malloc(...); Based on my understanding of C's syntax and grammar, this looks like nonsense. It looks like an array is being created (and ...
CircleSquared's user avatar
5 votes
4 answers
4k views

I just want to make sure the difference between *a[5] and (*a)[5] in C language. I know that the *a[5] means the array a can have five elements and each element is pointer. so, char *p = "ptr1"; ...
user3628636's user avatar
5 votes
4 answers
535 views

Possible Duplicate: C pointer to array/array of pointers disambiguation In C, is int *thing[5] an array of five pointers, each pointing to an integer, or a pointer to an array of five integers?
me_and's user avatar
  • 15.8k
8 votes
2 answers
465 views

I was programming a code in C++ when I accidentally put brackets to my pointer and my programs output changed. Since I am new to programming I wanted to know the difference between these type of ...
Lovely Princess's user avatar
5 votes
2 answers
2k views

What is the difference between these two in C. The first one is array of pointers. My main confusion is about the second declaration. What does it declare. Aren't the two the same ? int *p []={&i,...
Neer's user avatar
  • 203
2 votes
2 answers
3k views

What is the difference between the following statements? char *a[10]; char (*a)[10];
Sundeep KOKKONDA's user avatar
2 votes
2 answers
461 views

Possible Duplicate: C pointer to array/array of pointers disambiguation How is char (*p)[4]; different from char *p[4];?
Mukul Shukla's user avatar
1 vote
1 answer
3k views

Last time we had a test in programming and one of the questions was the difference between initializing int *x[10]; and int (*x)[10]; Can anyone clarify this for me?
Joshua's user avatar
  • 83
0 votes
4 answers
275 views

EDIT I've read the question and answers here: C pointer to array/array of pointers disambiguation. The answers there do not address the focus of my questions here as well as some of the answers ...
ryyker's user avatar
  • 23.2k
-3 votes
2 answers
2k views

Show me the difference between: int* v[10]; and int (*p)[10]; Please.
Анатолий's user avatar
-7 votes
4 answers
1k views

What is the different between int **p and int *p2[5] in the first case p is a pointer to pointers to an array that i will define later!, but p2 also point to array of pointers!!!!. int *p2[5] is the ...
user3223696's user avatar
-2 votes
2 answers
765 views

The output of the programmer : #include<stdio.h> int main (){ int A[3] = {1,2,3}; printf("%u %u %u ",&A,A,*A); return 0; } is :3216303812 3216303812 1 here &A and A is same that ...
user2588495's user avatar

15 30 50 per page
1
2 3 4 5
7