How to swap two variables, without using third variable ?
Answer Posted / bhaskar.mantrala
void main()
{
int a,b;
clrscr();
printf("\n Enter the values of a and b ");
scanf(" %d %d ", &a,&b);
a=a*b;
b=a/b;
a=a/b;
printf("\n \n After swapping ----> a = %d \t b = %d",a,b);
getch();
}
Is This Answer Correct ? | 9 Yes | 3 No |
Post New Answer View All Answers
write a c program to input initial & final time in the format hh:mm and find the time intervel between them? Ex inputs are initial 06:30 final 00:05 and 23:22 final 22.30
why nlogn is the lower limit of any sort algorithm?
Can you send Code for Run Length Encoding Of BMP Image in C Language in linux(i.e Compression and Decompression) ?
Design an implement of the inputs functions for event mode
What is data _null_? ,Explain with code when u need to use it in data step programming ?
could you please send the program code for multiplying sparse matrix in c????
To Write a C program to remove the repeated characters in the entered expression or in entered characters(i.e) removing duplicates. String contains only lowercase characters ['a'-'z']
Set up procedure for generating a wire frame display of a polyhedron with the hidden edges of the object drawn with dashed lines
Hi, i have a project that the teacher want a pyramid of numbers in C# or java...when we click a button...the pyramid should be generated in a listbox/or JtextArea...and the pyramid should have the folowing form: 1 232 34543 4567654 567898765 67890109876 7890123210987 890123454321098 90123456765432109 0123456789876543210 Plz help with codes...didn't find anything on the net.
What is full form of PEPSI
can you use proc sql to manpulate a data set or would u prefer to use proc report ? if so why ? make up an example and explain in detail
write a program for area of circumference of shapes
write a simple calculator c program to perform addition, subtraction, mul and div.
Given a spherical surface, write bump-mapping procedure to generate the bumpy surface of an orange
Write a routine to implement the polymarker function