Code:
#include<stdio.h>
void main()
{
int e;
printf("enter number");
scanf("%d",&e);
printf("%d ,%d",e+5);
}
enter number 4
9 ,4
i am trying what happens and why
if i give an extra %d with nothing corresponding to it after comma ,
why i get this 4 as output else than e+5 which is 9
and if i use this printf statement
printf("%d %d %d %d %d",e+5);
i get
enter number 5
10 5 -18 285 1
as far as i know printf gives -ve number on error but i get only one -ve number
(compiler used turbo C)


