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 volatile, register definition in C
Write a program to find given number is even or odd without using any control statement.
write a C program: To search a file any word which starts with ?a?. If the word following this ?a? starts with a vowel.Then replace this ?a? with ?a? with ?an?. redirect with the output onto an output file.The source file and destination file are specified by the user int the command line.
#include <stdio.h> #define sqr(x) (x*x) int main() { int x=2; printf("value of x=%d",sqr(x+1)); } What is the value of x?
16 Answers Accel Frontline, Opera, Oracle,
What is ambagious result in C? explain with an example.
What is Your Name :)
c program to arrange digits in a no in ascending and descending order
what is difference between declaring the pointer as int and char in c language?
While compiling a c program,graphics header files are not including in my program..eg: <graphics.h>,what may be the problem...is there any environment settings exists.
sir, i cannot find the way how to write aprogram by using array on queue
Program to find larger of the two numbers without using if-else,while,for,switch
how many header file is in C language ?
44 Answers College School Exams Tests, CTS, IBM, IMS, Infosys, ME, Sign Solutions, Wipro, XVT,