Write a program to interchange two variables without using
the third variable?
Answer Posted / pari
#include<stdio.h>
#include<conio.h>
void main()
{
int a,b;
printf("Enter two no");
scanf("%d%d",&a,&b);
a=a*b;
b=a/b;
a=a/b;
printf("After chanching no is =\n");
}
| Is This Answer Correct ? | 4 Yes | 7 No |
Post New Answer View All Answers
What is static volatile in c?
How can I implement a delay, or time a users response, with sub-second resolution?
When should a far pointer be used?
hai iam working in sap sd module for one year and working in lumax ind ltd in desp department but my problem is i have done m.b.a in hr/marketing and working sap sd there is any combination it. can you give right solution of my problem. and what can i do?
Is c programming hard?
Explain which of the following operators is incorrect and why? ( >=, <=, <>, ==)
How a string is stored in c?
main() { struct s1 { char *str; struct s1 *ptr; }; static struct s1 arr[] = { {"Hyderabad",arr+1}, {"Bangalore",arr+2}, {"Delhi",arr} }; struct s1 *p[3]; int i; < BR> for(i=0;i<=2;i++) p[i] = arr[i].ptr; printf("%s ",(*p)->str); printf("%s ",(++*p)->str); printf("%s ",((*p)++)->str); }
What is array within structure?
Differentiate between static and dynamic modeling.
The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?
what is a constant pointer in C
Explain how can a program be made to print the line number where an error occurs?
Explain what does a function declared as pascal do differently?
Explain output of printf("Hello World"-'A'+'B'); ?