@Himanshi: Seeing as how you are printing memory addresses and floats
with a double format, what output are you expecting?

Dave

On Jun 4, 1:21 pm, himanshi narang <himanshinarang...@gmail.com>
wrote:
> #include<stdio.h>
>
> int main()
> {
>     float a[]={13.24,1.5,1.5,5.4,3.5};
>     float *j;
>     j=a;
>     j=j+4;
>     printf("\n%d,%d,%d",j,*j,a[4]);
>
>     float p=3.5;
>     printf("\n%f,%d",p,p);
>
>     p=4.5;
>     printf("\n%d,%f",p,p);
>
> }
>
> output----
> -1080027596,0,1074528256
> 3.500000,0
> 0,0.000000
>
> plzz explain y i m getting dis output......

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to