write a program to swap Two numbers without using temp variable.
Answer Posted / nagarjun
main()
{
int a=4,b=5;
/*b=(a+b)-(a=b);*/
a^=b^=a^=b;
printf(" \n %d %d \n",a,b);
}
| Is This Answer Correct ? | 21 Yes | 28 No |
Post New Answer View All Answers
Badboy is defined who has ALL the following properties: Does not have a girlfriend and is not married. He is not more than 23 years old. The middle name should be "Singh" The last name should have more than 4 characters. The character 'a' should appear in the last name at least two times. The name of one of his brothers should be "Ram" Write a method: boolean isBadBoy(boolean hasGirlFriend , boolean isMarried, int age , String middleName , String lastName , String[] brotherName); isHaveGirlFriend is true if the person has a girlfriend isMarried is true if the person is married age is the age of the person middleName is the middle name of the person lastName is the last name of the person brotherName is the array of the names of his brothers
i have to apply for rbi before that i need to know the the syllabus for the entrance questions. whethet it may be aps or techinical
How many keywords are there in c?
What are the characteristics of arrays in c?
What is function prototype in c language?
What is scanf () in c?
Find MAXIMUM of three distinct integers using a single C statement
What does int main () mean?
What are the applications of c language?
How many identifiers are there in c?
What is declaration and definition in c?
what do u mean by Direct access files? then can u explain about Direct Access Files?
how could explain about job profile
Do you know null pointer?
Explain how do you determine whether to use a stream function or a low-level function?