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 |
C language questions for civil engineering
An arrangement of information in memory in such a way that it can be easily accessed and processed by a programming language a) string b) data structure c) pointers d) array
What is the purpose of void pointer?
what is the use of keyword volatile??
What happens if header file is included twice?
what is diffrence between string and character array?
What kind of structure is a house?
#include<stdio.h> main() { int a=1; int b=0; b=++a + ++a; printf("%d %d",a,b); }
why programming language C is still used in operating system's kernel??
Tell me can the size of an array be declared at runtime?
write a c program to change only the 3rd bit of the particular number such that other bits are not affected.. if bitnum=10(say.. it can be any no..
What is the output of printf("%d", printf("Hello"));?