tag:blogger.com,1999:blog-5571795200996649673.post197801155743147505..comments2024-03-29T12:09:25.361+05:30Comments on Program in C: Swap two values without using third variableNimish Garghttp://www.blogger.com/profile/15795821721808548808noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-5571795200996649673.post-60336423454568173002021-01-19T09:46:29.453+05:302021-01-19T09:46:29.453+05:30You can refer from here
StudyTonigtYou can refer from here<br /><a href="https://www.studytonight.com/c" rel="nofollow">StudyTonigt</a>Tech hubhttps://www.blogger.com/profile/11983879300469484883noreply@blogger.comtag:blogger.com,1999:blog-5571795200996649673.post-67207103102426229982021-01-19T09:39:20.557+05:302021-01-19T09:39:20.557+05:30NiceNiceTech hubhttps://www.blogger.com/profile/11983879300469484883noreply@blogger.comtag:blogger.com,1999:blog-5571795200996649673.post-19859989307973624862021-01-17T19:13:48.634+05:302021-01-17T19:13:48.634+05:30https://www.studytonight.com/c/programs/basic/swap...https://www.studytonight.com/c/programs/basic/swapping-two-numbers-program<br />smasherhttps://www.blogger.com/profile/17450913488548236948noreply@blogger.comtag:blogger.com,1999:blog-5571795200996649673.post-12400868179918803412021-01-17T19:13:29.992+05:302021-01-17T19:13:29.992+05:30#include
#include
void main()
{
int x = 10, y...#include<br />#include<br /><br />void main()<br />{<br /> int x = 10, y = 15;<br /> x = x + y - (y = x);<br /> printf("x = %d and y = %d",x,y);<br /> getch();<br />}<br /><br />you can refer to this link for detail answer about the topic:<br /><br />https://www.studytonight.com/c/programs/basic/swapping-two-numbers-programsmasherhttps://www.blogger.com/profile/17450913488548236948noreply@blogger.comtag:blogger.com,1999:blog-5571795200996649673.post-15335923915367330052016-11-25T09:09:23.971+05:302016-11-25T09:09:23.971+05:30Awesome!! Tysm!!Awesome!! Tysm!!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5571795200996649673.post-22385178164113063562016-07-26T19:16:57.000+05:302016-07-26T19:16:57.000+05:30hi all
even this works
a = a ^ b;
b = a ^ b;
a =...hi all<br /><br />even this works<br /><br />a = a ^ b;<br />b = a ^ b;<br />a = a ^ b ;<br /><br /><br />and<br /><br /><br />a = a * b;<br />b = a / b;<br />a = a / b ;Nobodyhttps://www.blogger.com/profile/15978367792372221507noreply@blogger.comtag:blogger.com,1999:blog-5571795200996649673.post-50287981361110872802014-09-23T16:30:43.435+05:302014-09-23T16:30:43.435+05:30how to swap values of 2 variables using function w...how to swap values of 2 variables using function where arguments are passed by referenceAnonymoushttps://www.blogger.com/profile/05863495970801766732noreply@blogger.comtag:blogger.com,1999:blog-5571795200996649673.post-72903442559901140342013-09-21T01:39:41.434+05:302013-09-21T01:39:41.434+05:30superb sitesuperb siteAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-5571795200996649673.post-5326454667049657202013-09-05T16:47:47.925+05:302013-09-05T16:47:47.925+05:30Thanks
Thanks<br />sujithttps://www.blogger.com/profile/18036765055099464540noreply@blogger.comtag:blogger.com,1999:blog-5571795200996649673.post-6490822943468981412013-04-04T09:01:24.541+05:302013-04-04T09:01:24.541+05:30same program using functionsame program using functionAnonymoushttps://www.blogger.com/profile/02507147804418082857noreply@blogger.comtag:blogger.com,1999:blog-5571795200996649673.post-70682865615381385162013-02-21T18:52:57.419+05:302013-02-21T18:52:57.419+05:30many many thanxmany many thanxAnonymousnoreply@blogger.com