Relative Content

Tag Archive for arrayscfor-looppointersimplicit-conversion

Is the & operator is essential to use as address operator [duplicate]

This question already has answers here: What is array-to-pointer conversion aka. decay? (11 answers) Closed 2 days ago. #include<stdio.h> int main() { int a[5]={5,10,15,20,25}; int *p; int i; p=a; for (i=0;i<=5;i++) { printf(“the address of the %d is = %dn”,*p,p); p++; } return 0; } In my program i do not even know that what […]