How to write the code of the program to swap two numbers
with in one statement?
Answer Posted / rajitha
#include<stdio.h>
main()
{
int a=3,b=4;
b=a+b-(a=b);
printf("%d",a);
printf("%d",b);
}
| Is This Answer Correct ? | 19 Yes | 4 No |
Post New Answer View All Answers
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant
What is dangling pointer in c?
What is data types?
Explain goto?
Explain the advantages and disadvantages of macros.
in case any function return float value we must declare a) the function must be declared as 'float' in main() as well b) the function automatically returned float values c) function before declared 'float' keyword d) all the above
write a program to find out prime number using sieve case?
Is c object oriented?
What is binary tree in c?
What is the use of the function in c?
Sir i need notes for structure,functions,pointers in c language can you help me please
Hi can anyone tell what is a start up code?
Is c dynamically typed?
How can I open a file so that other programs can update it at the same time?
Why enum is used in c?