two variables are added answer is stored on not for third
variable how it is possible?
Answer Posted / sujith
I am afraid i understood the question. If the question is
defined like, u need to exchange two variables without using
a temporary variable is,
a += b;
b = a - b;
a = a - b;
Another methos is ,
a ^= b ^= a ^= b;
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
what is a constant pointer in C
What does struct node * mean?
What is wrong in this statement? scanf(“%d”,whatnumber);
Is c still used?
cin.ignore(80, _ _);This statement a) ignores all input b) ignores the first 80 characters in the input c) ignores all input till end-of-line d) iteration
What is 'bus error'?
What is the purpose of & in scanf?
If null and 0 are equivalent as null pointer constants, which should I use?
typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?
What is ## preprocessor operator in c?
Which are low level languages?
Explain what is the difference between null and nul?
1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. 2) the Event Manager has to send participants to the stage to perform in the order in which they registered. Write a program that will help the Event Manager know who to call to the stage to perform. The Logic should be in Data Structures
Do pointers take up memory?
what do you mean by inline function in C?