C and C++ programs and MySQL
Always thinking in engineering style...
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
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment