Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

swap functions

  1. J

    C help on figuring out swap function

    I have two functions to swap 2 numbers. swap1 and swap2. swap1 but but not swap2. Can any one help me why swap2 is not working? I appreciate that. Jhon. #include <stdio.h> #include <stdlib.h> void swap1 (int* A, int* B); void swap2 (int A, int B); int main() { int num1 = 10; int num2 = 3...
Back
Top Bottom