onkar koparde


{ City } solapur
< Country > india
* Profession *
User No # 60598
Total Questions Posted # 0
Total Answers Posted # 2

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 3
Users Marked my Answers as Wrong # 4
Questions / { onkar koparde }
Questions Answers Category Views Company eMail




Answers / { onkar koparde }

Question { Persistent, 8104 }

swap two integer variables without using a third temporary
variable?


Answer

i'll only give u logic #include
void main() { int a=10,b=20;
printf("b4 swap:a=%d b=%d",a,b);
a=a+b;b=a-b;a=a-b; printf("aftr
swap:a=%d b=%d",a,b); }
from-onkar.koparde@gmail.com

Is This Answer Correct ?    2 Yes 4 No

Question { 2703 }

what is putchar() and getchar()?????


Answer

putchar()
it writes a character to the specified file or string
it returns a character
getchar()
it reads character from the specified file or reads
a single character from a given string.

Is This Answer Correct ?    1 Yes 0 No