Thursday, March 10, 2011

Pointer = Call By Value

# include <stdio.h>
int fnCall(char *);
int main()
{
char *PTR="HELLO";
fnCall(PTR);
printf("%s",PTR);
return 0;
}

int fnCall(char *PTR)
{
PTR +=3;
return 0;
}



OUTPUT:

HELLO
Press any key to continue . . .

No comments:

Post a Comment