wat are the two methods for swapping two numbers without
using temp variable??
Answers were Sorted based on User's Feedback
Answer / vijayakumar kanagasabai
main()
{
int a=4;b=6;
printf("Before swapping: a=%d, b=%d",a,b);
a=a+b;
b=a-b;
a=a-b;
printf("After swapping: a=%d, b=%d",a,b);
}
| Is This Answer Correct ? | 11 Yes | 1 No |
Answer / saida
int a=4,b=6;
printf("Before swapping: a=%d, b=%d",a,b);
a=a^b;
b=a^b;
a=a^b;
printf("After swapping: a=%d, b=%d",a,b);
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Why use int main instead of void main?
Explain the difference between malloc() and calloc() in c?
What is extern storage class in c?
What is #define?
What is the best way to comment out a section of code that contains comments?
develop algorithms to add polynomials (i) in one variable
what is the answer for it main() { int i; clrscr(); printf("%d",&i)+1; scanf("%d",i)-1; }
create an SINGLE LINKED LISTS and reverse the data in the lists completely
What is the use of bit field?
the question is that what you have been doing all these periods (one year gap)
what is the hardware model of CFG( context free grammar)
Explain how do you determine the length of a string value that was stored in a variable?