126k views
4 votes
Hi, please help me, solution.​

Hi, please help me, solution.​-example-1

1 Answer

1 vote

Answer:

error: incompatible types

Step-by-step explanation:

Given

The attached code

Required

The output

Variable "a" is declared as float

While p is declared as a pointer to an integer variable

An error of incompatible types will be returned on line 3, int *p = a;

Because the variables are not the same.

To assign a to p*, we have to use type casting.

Hence, (b) is correct