I am trying to change value of a variable by sending pointe to that variable as argument but I still get the same value in main(). What is it that I am doing wrong? Thanks a lot
#include <iostream.h>
#include <conio.h>
#include <string.h>
#include <stdio.h>
void modify(int *);
void main()
{
clrscr();
int num = 0;
int *aptr = #
modify(aptr);
cout << "Value of num is: " << num;
getch();
}
void modify(int *Num)
{
*Num = 10;
}