How to write the code of the program to swap two numbers
with in one statement?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
Can you mix old-style and new-style function syntax?
how to generate sparse matrix in c
What are the types of pointers?
parkside's triangle.. create a program like this.. enter the size: 6 enter the seed: 1 output: 1 23 456 7891 23456 789123 sample2: enter the size: 5 enter the seed: 3 output: 3 45 678 9123 45678 parkside should not exceed 10 while its seed should only be not more than 9..
why 'c' is called middle level language.
write a program to print the all 4digits numbers & whose squares must me even numbers?
what is the difference between. system call and library function?
How do you define a string?
What is structure in c explain with example?
what is difference between ++(*p) and (*p)++
17 Answers Accenture, HCL, IBM,
What is the advantage of using #define to declare a constant?
0 Answers Agilent, ZS Associates,
What are preprocessor directives in c?