how to swap two integers 1 and 32767 without using third
variable
Answers were Sorted based on User's Feedback
Answer / susmita dutta chowdhury
b=(a+b)-(a=b);
printf("%d %d ",a,b);
explanation:-
b=(1+32767)-(a=32767)
b=32768-32767
b=1
a=32767
| Is This Answer Correct ? | 0 Yes | 0 No |
Write an algorithm for a program that receives an integer as input and outputs the product of of its digits. E.g. 1234 = 24, 705 = 0
which one is not preprocessor directive a)#if b)#elif c)#undef d)#pragma
16 Answers Accenture, Infosys, TCS, Wipro,
what is the associativity of bitwise OR operator?
Is malloc memset faster than calloc?
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
the number of measuring units from a arbitrary starting point in a record area or control block to some other point a) branching b) recording pointer c) none d) offset
what is difference between procedural language and functional language ?
Explain what are run-time errors?
What is the total generic pointer type?
write a programming in c language, 1 3 5 7 9 11
What is the purpose of main( ) in c language?
say the following declaration is correct nr not. int b=a,n=0;