swap two numbers without using a temporary variable …

360
3605

C Program to swap two numbers without using third variable with programming examples for beginners and professionals covering concepts, control statements, c array, c pointers, c structures, union, c strings and more.

swap.c

#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
clrscr();
printf("\n enter the value of a and b :");
scanf("%d %d",&a,&b);
a=a+b;
b=a-b;
a=a-b;
printf("swapping of a=%d",a);
printf("swapping of b=%d",b);
getch();
}

 

360 COMMENTS

  1. I know this if off topic but I’m looking into starting my own blog and was wondering what
    all is needed to get set up? I’m assuming having a blog like yours would cost a pretty penny?
    I’m not very internet savvy so I’m not 100% sure. Any tips
    or advice would be greatly appreciated. Cheers

  2. Hi, just required you to know I he added your site to my Google bookmarks due to your layout. But seriously, I believe your internet site has 1 in the freshest theme I??ve came across. Hacklink Panel Hacklink

  3. Hi, just required you to know I he added your site to my Google bookmarks due to your layout. But seriously, I believe your internet site has 1 in the freshest theme I??ve came across. 儿童色情 儿童色情片

  4. You’re so awesome! I don’t believe I have read a single thing like that before. So great to find someone with some original thoughts on this topic. Really.. thank you for starting this up. This website is something that is needed on the internet, someone with a little originality!

  5. I love how you use analogies and metaphors to explain complex ideas. It makes the information much more accessible and memorable.

  6. Your article is informative and well-researched. I learned a lot from reading it and appreciate the effort you put into creating such a valuable resource.

  7. Hi there to all, for the reason that I am genuinely keen of reading this website’s post to be updated on a regular basis. It carries pleasant stuff.

  8. I’ve been struggling with this issue myself, and your article provided me with some much-needed guidance and support. Thank you for being a valuable resource.

  9. naturally like your web site however you need to take a look at the spelling on several of your posts. A number of them are rife with spelling problems and I find it very bothersome to tell the truth on the other hand I will surely come again again.

  10. I blog often and I seriously appreciate your information.
    The article has really peaked my interest. I am going
    to bookmark your website and keep checking for new information about once per week.
    I subscribed to your Feed as well.

  11. Hello there! This blog post could not be written any better!
    Looking at this article reminds me of my previous roommate!
    He continually kept preaching about this. I will send this information to him.

    Pretty sure he’s going to have a good read. Many thanks for sharing!

  12. Hey very cool website!! Man .. Excellent .. Amazing .. I’ll bookmark your web site and take the feeds also?KI am satisfied to search out numerous useful info here in the submit, we need work out more techniques on this regard, thank you for sharing. . . . . .

  13. To announce true to life news, dog these tips:

    Look in behalf of credible sources: http://ourmetals.com/includes/pages/what-time-of-day-do-doctors-call-with-bad-news.html. It’s important to guard that the report outset you are reading is reputable and unbiased. Some examples of reputable sources include BBC, Reuters, and The New York Times. Announce multiple sources to pick up a well-rounded sentiment of a particular info event. This can improve you listen to a more ended display and escape bias. Be in the know of the perspective the article is coming from, as flush with respected hearsay sources can have bias. Fact-check the dirt with another source if a news article seems too staggering or unbelievable. Always be persuaded you are reading a known article, as tidings can change quickly.

    By following these tips, you can fit a more au fait news reader and best be aware the beget about you.

  14. hey there and thank you for your info – I’ve definitely picked up something new from right here.

    I did however expertise some technical points using this site, as I experienced to reload the web site
    many times previous to I could get it to load properly.
    I had been wondering if your web host is OK? Not that I am complaining,
    but sluggish loading instances times will often affect your placement
    in google and can damage your high-quality score if ads and marketing with Adwords.
    Well I’m adding this RSS to my email and could
    look out for much more of your respective intriguing content.
    Make sure you update this again soon.

  15. Altogether! Conclusion news portals in the UK can be awesome, but there are many resources ready to boost you find the unmatched in unison as you. As I mentioned formerly, conducting an online search with a view http://valla-cranes.co.uk/wp-content/pages/why-is-fox-news-not-working-on-comcast.html “UK newsflash websites” or “British intelligence portals” is a pronounced starting point. Not no more than determination this give you a encyclopaedic list of hearsay websites, but it will also lend you with a better savvy comprehension or of the coeval story scene in the UK.
    In the good old days you secure a list of embryonic account portals, it’s prominent to evaluate each anyone to determine which overwhelm suits your preferences. As an exempli gratia, BBC News is known quest of its objective reporting of news stories, while The Trustee is known quest of its in-depth breakdown of political and popular issues. The Unconnected is known pro its investigative journalism, while The Times is known by reason of its work and funds coverage. By way of arrangement these differences, you can select the talk portal that caters to your interests and provides you with the rumour you hope for to read.
    Additionally, it’s usefulness all things close by scuttlebutt portals with a view specific regions within the UK. These portals produce coverage of events and news stories that are akin to the area, which can be exceptionally utilitarian if you’re looking to hang on to up with events in your local community. In behalf of occurrence, municipal dope portals in London include the Evening Paradigm and the Londonist, while Manchester Evening Hearsay and Liverpool Repercussion are hot in the North West.
    Comprehensive, there are many news portals at one’s fingertips in the UK, and it’s important to do your inspection to unearth the everybody that suits your needs. At near evaluating the unalike low-down portals based on their coverage, luxury, and editorial perspective, you can decide the song that provides you with the most fitting and interesting news stories. Esteemed destiny with your search, and I hope this data helps you reveal the practised dope portal inasmuch as you!

  16. I’m not sure why but this weblog is loading very slow for
    me. Is anyone else having this issue or is it a issue on my end?
    I’ll check back later on and see if the problem still exists.

  17. smmpanel,smm panel,smm panel ,instagram takipçi hilesi, instagram takipçi arttırma, instagram takipçi hilesi 2023, instagram takipçi hilesi 2023, instagram takipçi hilesi nasıl yapılır, instagram takipçi hilesi şifresiz, instagram takipçi hilesi uygulama, instagram takipçi hilesi ücretsiz, instagram bedava takipçi hilesi, instagram bedava takipçi hilesi nasıl yapılır, takipçi hilesi, takipçi hilesi 2021, takipçi hilesi instagram 2023, takipçi hilesi nasıl yapılır, takipçi hilesi #instagram

LEAVE A REPLY

Please enter your comment!
Please enter your name here