how to swap two integers 1 and 32767 without using third
variable
Answer Posted / vidhubala-j
int a=1
int b=32767
a^=b^=a
printf("%d %d",a,b);
| Is This Answer Correct ? | 4 Yes | 3 No |
Post New Answer View All Answers
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;
What is a nested loop?
will u please send me the placement papers to my mail???????????????????
Give the rules for variable declaration?
What is the package for freshers(Non IIT) in amazon(hyderabad). And what is the same for those who are a contract employee.
Explain built-in function?
How do you determine a file’s attributes?
How would you obtain the current time and difference between two times?
c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above
Explain what does the function toupper() do?
Is struct oop?
What is structure in c explain with example?
What is a pointer and how it is initialized?
What are the types of type qualifiers in c?