This week's book giveaway is in the Performance forum. We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line! See this thread for details.
Problem in attempting to compile Generic swap function program....
posted 3 years ago
Can you please help me to solve the problem.
I am trying to swap the user input.......however, if i want to swap numbers then we write a code as - scanf("%d",a);
Here i need to specify in the code %d for integer values input........what if i want to give the input number or character so that the program will dynamically accept either integer or character values and do the swapping.