Can any one give an example of crossover probability? I would like to know what is the benefits of determining crossover probability, and also what effect it has in genetic algorithms or genetic programming.
Crossover probability doesn't have a benefit by definition. It is merely a parameter that allows you to adjust the behavior of a genetic algorithm. Lowering the crossover probability will let more individuals continue in the next generation unchanged. This may or may not have a positive effect when solving certain problems. I created a small experiment in HeuristicLab with a genetic algorithm applied to the TSP. The genetic algorithm was repeated 10 times for each probability on a small instance of the TSPLIB (bays29). As you can see in the image below, it is rather difficult to recognize a pattern. I also uploaded the algorithm and experiment, you can open and experiment with these files for yourself in HeuristicLab. The experiment includes a quality chart for each run and further analysis so you can check convergence behavior if you like.
It is also likely that the chosen strategy is too simple and thus failed to show an effect. In the experiment the parents that were not subject to crossover were also selected by fitness proportional selection. So a high quality individual would dominate the population very fast. A different strategy could be to select only the crossed parents by fitness-proportional selection and the remaining parents randomly. Results can be seen here (algorithm and experiment);
You can make your own modifications and experiment with the results.
A related answer can be found here: What is Crossover Probability & Mutation Probability in Genetic Algorithm or Genetic Programming?