why is the output coming as 1 and not the address of j i tried with every alphabets still it's giving 1 as output
how is this program not giving address of j and why is it giving 1 as output i tried with every letters as input still it's giving 1?
#include "stdio.h"
int main()
{
char arr[100];
printf("%d", scanf("%s", arr));
/* Suppose that input value given
for above scanf is "jje" */
return 2;
}
shouldn't it give the address of 1st letter ie j