I have a simple question that whether only using pointers instead of normal variables increase the efficiency of the program either time wise or memory wise? For an instance if I use following program to swap two integers.
#include<iostream>
#include<conio.h>
#include<new>
using namespace std;
int main()
{
int *a=new int;
int *b=new int;
int *c=new int;
cin>>(*a)>>(*b);
*c=*a;*a=*b;*b=*c;
cout<<"swapping";
cout<<*a<<*b;
getch();
}