write a program to swap Two numbers without using temp variable.
Answer Posted / riyaz
int a, b;
printf("a=");
scanf("%d",&a);
printf("b=");
scanf("%d",&b);
printf("a = %d\nb = %d\n",b,a);
return 0;
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What's the difference between constant char *p and char * constant p?
How can I prevent another program from modifying part of a file that I am modifying?
a direct address that identifies a location by means of its displacement from a base address or segment a) absolute address b) relative address c) relative mode d) absolute mode
What is the use of linkage in c language?
if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
Explain can you assign a different address to an array tag?
What is the correct code to have following output in c using nested for loop?
How can I remove the leading spaces from a string?
What are the different file extensions involved when programming in C?
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
How can I list all of the predefined identifiers?
What is sizeof array?
What is the scope of local variable in c?
In c programming, explain how do you insert quote characters (? And ?) Into the output screen?