wat are the two methods for swapping two numbers without
using temp variable??
Answer Posted / shrikantauti
i dont know the methods but can give the code to swap values without temporary variable.
a b
a=a+b
b=a-b
a=a-b
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
Explain what is a static function?
What is static and auto variables in c?
#include show(int t,va_list ptr1) { int a,x,i; a=va_arg(ptr1,int) printf(" %d",a) } display(char) { int x; listptr; va_star(otr,s); n=va_arg(ptr,int); show(x,ptr); } main() { display("hello",4,12,13,14,44); }
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
#define f(g,h) g##h main O int i=0 int var=100 ; print f ("%d"f(var,10));} wat would be the output??
What do you mean by keywords in c?
How can I write functions that take a variable number of arguments?
Why ca not I do something like this?
write a c program to find the sum of five entered numbers using an array named number
What is structure padding in c?
What is infinite loop?
A collection of functions,calls,subroutines or other data a) library b) header files c) set of files d) textfiles
What are operators in c?
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......
What is a stream?