Write a program to interchange two variables without using
the third variable?
Answer Posted / kumar
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b,c;
clrscr();
printf("Enter two no");
scanf("%d%d",&a,&b);
a=b-0;
b=a-0;
printf("a=%d b=%d",a,b);
getch();
}
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
What is static memory allocation?
What is action and transformation in spark?
Does * p ++ increment p or what it points to?
Write the Program to reverse a string using pointers.
What is the difference between declaring a variable and defining a variable?
What is keyword with example?
Describe explain how arrays can be passed to a user defined function
hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .
Write a program to swap two numbers without using the third variable?
design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
Explain the difference between strcpy() and memcpy() function?
What is the difference between union and anonymous union?
Explain how do you print an address?
How can you access memory located at a certain address?