Hello Friend..
You want to do it by using pointers right...?
Then first use two character pointers...
Use two char variables to read the two strings..
Assign their addresses to character pointers..
Now pass their address to function by using poiter variables...
Function strcmp will return 0 if they are equal else any nonzero integer..
Here you are returning
...
You want to do it by using pointers right...?
Then first use two character pointers...
Use two char variables to read the two strings..
Assign their addresses to character pointers..
Now pass their address to function by using poiter variables...
Function strcmp will return 0 if they are equal else any nonzero integer..
Here you are returning
Leave a comment: