a C prog to swap 2 no.s without using variables just an
array?
Answer Posted / karthik
void main()
{
int a=10,b=20;
a^=b^=a^=b;
printf("a=%d,b=%d",a,b)
getch();
}
| Is This Answer Correct ? | 8 Yes | 6 No |
Post New Answer View All Answers
What is function prototype?
In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)
What are the back slash character constants or escape sequence charactersavailable in c?
Why are algorithms important in c program?
What is bin sh c?
What is structure in c explain with example?
Describe dynamic data structure in c programming language?
Why c is called top down?
Why main is used in c?
How can I write functions that take a variable number of arguments?
Explain b+ tree?
Difference between malloc() and calloc() function?
How old is c programming language?
What does node * mean?
What is a void * in c?