wat are the two methods for swapping two numbers without
using temp variable??
Answer Posted / abhishek karnani
int a=10,b=5;
a=a+b-(b=a);
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Which control loop is recommended if you have to execute set of statements for fixed number of times?
What is the condition that is applied with ?: Operator?
Difference between linking and loading?
Which one to choose from 'initialization lists' or 'assignment', for the use in the constructor?
what is the differnce between programing langauge and tool? is sas is a programing langauge r tool?
write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.
Can you write a programmer for FACTORIAL using recursion?
What is difference between array and structure in c?
Explain what is dynamic data structure?
Can you please explain the difference between exit() and _exit() function?
What is a union?
write a program in c language to print your bio-data on the screen by using functions.
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
what are # pragma staments?
Find the second largest element in an array with minimum no of comparisons and give the minimum no of comparisons needed on an array of size N to do the same.