write a program to swap Two numbers without using temp variable.
Answer Posted / riyaz
int a, b;
printf("a=");
scanf("%d",&a);
printf("b=");
scanf("%d",&b);
printf("a = %d\nb = %d\n",b,a);
return 0;
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What do you mean by Recursion Function?
write an algorithm to display a square matrix.
Why string is used in c?
simple program of graphics and their output display
a character or group of characters that defines a register,or a part of storage a) memory b) byte c) address d) linear list
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
What is the scope of an external variable in c?
"C" language developed by "Dennis Ritchie" at AT & T. his remarks are a) too general, too abstract b) could deal with only specific problems c) lost generality of BCPL and B restored d) no remarks
Explain what are preprocessor directives?
What is the difference between %d and %i?
Tell me about low level programming languages.
What is the right way to use errno?
What are the types of macro formats?
What is #include called?
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.