write a program to swap Two numbers without using temp variable.
Answer Posted / prasanna
Swapping two variables in a single line with no temporary
variable..
b=(a+b)-(a=b);
so.. simple..
Prasanna. (prasanna7287@yahoo.co.in)
| Is This Answer Correct ? | 351 Yes | 140 No |
Post New Answer View All Answers
In this problem you are to write a program that will cut some number of prime numbers from the list of prime numbers between 1 and N.Your program will read in a number N; determine the list of prime numbers between 1 and N; and print the C*2 prime numbers from the center of the list if there are an even number of prime numbers or (C*2)-1 prime numbers from the center of the list if there are an odd number of prime numbers in the list.
Why functions are used in c?
What language is c written?
What 'lex' does?
Differentiate between a for loop and a while loop? What are it uses?
What is nested structure?
What is the difference between single charater constant and string constant?
How can you return multiple values from a function?
What is sizeof array in c?
What does struct node * mean?
What is the difference between array and structure in c?
What does dm mean sexually?
What is return type in c?
What is wrong in this statement? scanf(ā%dā,whatnumber);
Declare the structure which contains the following members and write in C list of all students who score more than 75 marks. Roll No, Name, Father Name, Age, City, Marks.