C Programming and Technical Programming Technical

Write a program in Swapping inc/c++ of two numbers in a single line only ?

Read Solution (Total 9)

C Other Question

Write a program to eliminate repeated word in a string without using built in function.
For ex: hi how are you. hope you are fine.
o/p: hi how are you. hope fine.
main()
{
int a=10,b;
b=(a++)+(a++);
a=(b++)+(b++);
printf("a=%d and b=%d",a,b);
}

Options
1) a=43 b=21
2) a=42 b=21
3) a=43 b=23
4) a=44 b=20