Can you help me please i can't answer | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Can you help me please i can't answer

😫😔

8th Jul 2021, 5:08 PM
HASHEM AL_NASRE
HASHEM AL_NASRE - avatar
3 Answers
0
Can you explain the question once again?
8th Jul 2021, 5:38 PM
pavan
0
#include<stdio.h> int main() { double array[10] = {1,2,3,4,5,6,7,8,9,10}; printf("%p \n",array); printf("%p \n",array+4); printf("%lf \n",*array); printf("%lf \n",*(array+4)); return 0; } pavan
8th Jul 2021, 5:39 PM
HASHEM AL_NASRE
HASHEM AL_NASRE - avatar
0
array stores the zeroth element address if you want addres u simply use array.if u want to access the element then use *array .for any element u want to access use *(array+i) or array[I] where I is from 0 to 9 .if u want to access any address then use array+i . Please mention if u have any further doubts
8th Jul 2021, 5:45 PM
pavan