Computer Science, asked by naseehnasar455, 7 months ago

write a program to allocate memory to store the values 10 and 155.67 dynamically and deallocate after displaying them.​

Answers

Answered by prakhargupta3301
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