Its basically addition using pointer arithmatics. check for array indexing.
On Wed, Jul 13, 2011 at 1:50 PM, nicks wrote:
> I am looking for a code which can add without using + sign
> i searched the net and found the following code..can anyone explain me
> whats happening in this ??
>
> #inc
I am looking for a code which can add without using + sign
i searched the net and found the following code..can anyone explain me
whats happening in this ??
#include
#include
int main()
{
int a=3000,b=20,sum;
char *p;
p=(char *)a;
sum= (int)&p[b]; //adding a & b
printf("Answer is :");
printf(