write a program to swap Two numbers without using temp variable.
Answer Posted / tamerat
q
| Is This Answer Correct ? | 8 Yes | 13 No |
Post New Answer View All Answers
You are to write your own versions of strcpy() and strlen (). Call them mystrcpy() and mystrlen(). Write them first as code within main(), not as functions, then, convert them to functions. You will pass two arrays to the function in the case of mystrcpy(), the source and target array.
what are bit fields in c?
Differentiate call by value and call by reference?
How do you override a defined macro?
FILE PROGRAMMING
1234554321 1234 4321 123 321 12 21 1 1 12 21 123 321 1234 4321 1234554321
What is the value of c?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)
What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }
Tell me can the size of an array be declared at runtime?
What is volatile variable how do you declare it?
What is sizeof array in c?
Explain how do you override a defined macro?
Does free set pointer to null?
Can you add pointers together? Why would you?