How to write the code of the program to swap two numbers
with in one statement?
Answer Posted / manoj kumar shukla
main()
{
int a=4,b=3;
a=a+b-(b=a);
printf("%d",a);
printf("%d",b);
}
Is This Answer Correct ? | 6 Yes | 2 No |
Post New Answer View All Answers
What are the advantages of c preprocessor?
What is calloc in c?
In C language, a variable name cannot contain?
Is printf a keyword?
Can you explain what keyboard debouncing is, and where and why we us it? please give some examples
7-Given an index k, return the kth row of the Pascal's triangle. For example, when k = 3, the row is [1,3,3,1]. For reference look at the following standard pascal’s triangle.
how to introdu5ce my self in serco
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
What are Macros? What are its advantages and disadvantages?
how should functions be apportioned among source files?
to find the closest pair
What is linear search?
What is break statement?
What is the -> in c?
how can i write a program that prints out a box such that whenever i press any key8(coordinate number) on the keyboard, the box moves.