write a program to swap Two numbers without using temp variable.

Answer Posted / nagakishorebabu

a=a+b;
b=a-b;
a=a-b;
printf("a %dand b %dis :",a,b);

Is This Answer Correct ?    181 Yes 43 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon

1945


a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above

967


What is calloc in c?

867


What are inbuilt functions in c?

751


What are the general description for loop statement and available loop types in c?

883






i have a written test for microland please give me test pattern

2448


How to get string length of given string in c?

782


what is the role you expect in software industry?

1855


What does s c mean in text?

801


if (i = 0)printf ("True"); elseprintf("False"); Under what conditions will the above print out the string "True" a) Never b) Always c) When the value of i is 0 d) all of the above

886


What are linker error?

814


Write a program to produce the following output: 1 2 3 4 5 6 7 8 9 10

15410


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

1432


Create a structure to specify data on students given below: Roll number, Name, Department, Course, Year of joining Assume that there are not more than 450 students in the college. 1.write a function to print names of all students who joined in a particular year 2.write a function to print the data of a student whose roll number is given

2780


How to delete a node from linked list w/o using collectons?

2328