Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Home
»
Technical Questions
»
Programming
Swap two variables without using third variable.
Correct Answer:
#include int main(){ int a=5,b=10; a=b+a; b=a-b; a=a-b; printf("a= %d b= %d",a,b); }
← Previous Question
Next Question→
More Questions from
Programming
Write a program to generate the Fibonacci series in c?
C program to find the factorial of a given number
Write a c program to check whether a number is strong or not.
Write a c program to print multiplication table
Write a c program for selection sort.
Write a c program for quick sort.
Write a c program for insertion sort.
Write a c program for merge sort.
Write a c program for binary search.
Write a program for matrix multiplication in c
Discussion & Comments
No comments yet. Be the first to comment!
Name:
Comment:
Post Comment
Join Discussion
Discussion & Comments