In 1st program, 2nd printf requires one more argument. And basically
%a is used for printing a double value in hex. see "man 3 printf".

On Sat, Jun 11, 2011 at 5:29 PM, nicks <crazy.logic.k...@gmail.com> wrote:
> Hello friends..plz help me in understanding the following C Output
>
> first one is --
>
> #include<stdio.h>
> #include<conio.h>
> main()
> {
> int a=5;
> printf("a=%d\n",a);
> printf("%a=%d",a);
> getch();
> }
> OUTPUT -
> a=5
> 0x1.2ff380p-1021=4199082
>
>
> and the other one is --
>
> #include<stdio.H>
> # include <conio.h>
> int i=2;
> main()
> {
>  void add();
>  add(i++,--i);
>     printf("\ni=%d \n",i);system("pause");
> }
> void add(int a ,int b)
> {
>  printf("\na=%d b=%d",a,b);
> }
>
>  OUTPUT -
> a=1 b=1
> i=2
>
> --
> 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.
>

-- 
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