Write an expression that dynamically allocates sufficient me

Write an expression that dynamically allocates sufficient memory to hold a single integer value and whose value is a pointer to that location

Solution

int a; // this is used to allocate sufficient memory for an integer value.

int *pt=a; //this is a pointer pt that pints to the location of the variable.

Write an expression that dynamically allocates sufficient memory to hold a single integer value and whose value is a pointer to that locationSolutionint a; // t

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site