write a program to allocate memory to store the values 10 and 155.67 dynamically and deallocate after displaying them.
Answers
Answered by
3
Answer:
#include <iostream.h>
#include <conio.h>
void main()
{
int *val1= new int;
float * val2= new float;
*val1=10;
*val2= 155.67;
cout<<*val1<<*val2;
delete val1;
delete val2;
getch();
}
Similar questions