Koren Leslie Cohen

  • About
  • Blog
  • Contact

0 comments

C

Implementing Swap in C without a Swap Function

March 30, 2014 by Koren Leslie Cohen

I recently had to implement a swap in a problem set for Harvard CS50.  Although you can call a swap function, you can also implement a swap without a swap function:

swap.c

Output:

swap.c

  • About
  • Latest Posts
Connect
Koren Leslie Cohen
Product manager at Facebook. Former senior product manager at Dollar Shave Club in Los Angeles and software engineer at J.Crew / Madewell in New York City. Recovering trial lawyer.
Connect
Latest posts by Koren Leslie Cohen (see all)
  • PM Career Story - April 28, 2022
  • How to Transition into Product Management - December 26, 2017
  • What I’ve Learned in My First Few Months as a Product Manager - October 14, 2015

Related Posts

Vigenere Cipher in C
Mario Pyramid in C

Share

Facebook Google+ Twitter Pinterest Email

Comments Cancel reply

Your email address will not be published. Required fields are marked *

*

code

Back to Blog

  • GitHub
  • Instagram
  • LinkedIn
  • RSS
  • Twitter

Looking for something?

Copyright 2023 Koren Leslie Cohen