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 |
What is the difference between fread and fwrite function?
What is structure in c definition?
what is diffrence between linear and binary search in array respect to operators?what kind of operator can be used in both seach methods?
Meaning of () in c
program to find the second largest word in a paragraph amongst all words that repeat more thn twice
Why is struct padding needed?
1. Write the function int countchtr(char string[ ], int ch); which returns the number of times the character ch appears in the string. Example, the call countchtr(“She lives in NEWYORK”, ‘e’) would return 3.
can we print any string in c language without using semicolon(;)(terminator) in whole program.
Why is c used in embedded systems?
What is binary tree in c?
Explain a pre-processor and its advantages.
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler