Answered: Why int * a = 10 shows an error but char *b = “hello” is ok?
Question When I assign an integer value to the pointer ‘a’ (i.e. int *a = 10), I receive an error. However, when I assign a character value to the pointer ‘b’ (i.e. char *b = “hello”), no error is displayed. Could you please explain why this is the case? Answer #1 The error occurs when …