What will be output of the following “C” code?
		
					

Loading

โœช Choose the correct option.

What will be output of the following “C” code?


FUNC (int *p)
{
p = (int *)malloc(100);
printf("p:%x",p);
}

int main( )
{
int *ptr;
FUNC(ptr);
printf("Ptr:%x",ptr);
return 0;
}

A. Both printf statements prints same values
B. Both print different values
C. Gives compile time error
D. Gives run time error