P
pxe
Hi,
Please let me know what is wrong with my code below. *pt1++ is giving
me 10.
Is it not valid?
#include<iostream>
#include<stdlib.h>
using namespace std;
int main(int argc,char *argv[])
{
int a=0;
int *pt1;
int *pt2;
float *pt3;
int values[100];
int *gels[100];
pt1=&a;
cout<<*pt1;
*pt1++;
a=*pt1;
cout<<a<<*pt1;
return 0;
}
Thanks and Regards
Babu
Please let me know what is wrong with my code below. *pt1++ is giving
me 10.
Is it not valid?
#include<iostream>
#include<stdlib.h>
using namespace std;
int main(int argc,char *argv[])
{
int a=0;
int *pt1;
int *pt2;
float *pt3;
int values[100];
int *gels[100];
pt1=&a;
cout<<*pt1;
*pt1++;
a=*pt1;
cout<<a<<*pt1;
return 0;
}
Thanks and Regards
Babu