How to swap two values using a single variable ?
condition: Not to use Array and Pointer ?
Answer Posted / jyotsna
let take a single variable 'x'
a=3
b=2
hence
x=a;
a=b;
b=x;
swapping is occured now a=2 and b=3
Is This Answer Correct ? | 10 Yes | 12 No |
Post New Answer View All Answers
What are runtime error?
Is c call by value?
how to print the character with maximum occurence and print that number of occurence too in a string given ?
What is the difference between scanf and fscanf?
Explain the difference between null pointer and void pointer.
explain what is an endless loop?
What would be an example of a structure analogous to structure c?
What are different types of pointers?
What is c system32 taskhostw exe?
Is anything faster than c?
What is the use of pragma in embedded c?
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
cavium networks written test pattern ..
Explain what is wrong with this program statement? Void = 10;
Explain what is the difference between functions getch() and getche()?