3,016 views
1 1 vote
#include <stdio.h>
main()
{
    int arr[5];
    printf("%p,%p\n",arr,&arr);
}

How do both print the same address?

Please log in or register to answer this question.

Position:
Show:

Related questions

0 0 votes
1 1 answer
1.2k
1.2k views
atul_21 asked Jun 2, 2017
1,182 views
What is the output of the above program?Explanation:(*(*(*p) -2)) = E (*(*(*p)[0]+1)) = A E - A = 4
0 0 votes
0 0 answers
1.2k
1.2k views
gmrishikumar asked Jan 2, 2019
1,192 views
#include<stdio.h>int main ( ){ int demo ( ); // What is this and what does it do? demo ( ); (*demo) ( );}int demo ( ){ printf("Morning");}
0 0 votes
1 1 answer
821
821 views
Chhotu asked Nov 20, 2017
821 views
Hi,Why multiple dereferencing is not creating problem in the following program ?https://ideone.com/3Li06v (Check line 1,2 & 3. all are giving same O/P)
2 2 votes
1 answers 1 answer
4.8k
4.8k views
Shubhanshu asked Jul 11, 2017
4,812 views
Consider the program:-void main(){ int a[] = {0, 1, 2, 3, 4}; int *p[] = { a, a+1, a+2, a+3, a+4 }; int ptr = p; ptr++; print( ptr - p, *ptr - p, ptr ); *ptr++; print( ...