Output of fun - function

void fun(char *a ,char *b)

{

  ++*a;

 *b++;

}

main()

{

int a =5,b=5;

fun(&a, &b);

printf("%d, %d", a, b);

}

1Comment
Sumit Verma @sumitkgp
16 Jan 2017 07:56 pm

void fun(char *a ,char *b) , This will cause an error, here pointer should be of integer type.