a C prog to swap 2 no.s without using variables just an
array?
Answer Posted / jaspreet singh
void main()
{
int a[2]={20,10};
a[0]=a[0]^a[1];
a[1]=a[0]^a[1];
a[0]=a[0]^a[1];
printf("a=%d,b=%d",a[0],a[1])
getch();
}
| Is This Answer Correct ? | 7 Yes | 4 No |
Post New Answer View All Answers
write a program to reverse a every alternetive words in a string in a place. EX: Input is "this is the line of text" Output should be "shit is eht line fo text" Please any one tell me code for that.
c program to compute AREA under integral
Is c pass by value or reference?
What is the difference between procedural and functional programming?
What is difference between %d and %i in c?
What is hashing in c?
Compare and contrast compilers from interpreters.
What are the types of data types and explain?
Write an efficient algo and C code to shuffle a pack of cards.. this one was a feedback process until we came up with one with no extra storage.
What are examples of structures?
What is huge pointer in c?
write a program to generate address labels using structures?
How can you draw circles in C?
What is the use of c language in real life?
provide an example of the Group by clause, when would you use this clause