The following is giving output as follows
String:Astro.cfg
Fail
If buff is Astro.cfg, it has to give success output, but it is giving fail. I want to print Success.. Please guide me regarding this pointer usage..
#include<iostream>
using namespace std;
int main()
{
char arr[]="Asto.cfg";
char *buff=&arr[0];
printf("String:%s",buff);
if(buff=="Asto.cfg")
{
cout<<"Success";
}
else
cout<<"Fail!!!!";
cin.get();
}