44.what is the difference between strcpy() and memcpy()
function?
45.what is output of the following statetment?
46.Printf(“%x”, -1<<4); ?
47.will the program compile?
int i;
scanf(“%d”,i);
printf(“%d”,i);
48.write a string copy function routine?
49.swap two integer variables without using a third
temporary variable?
50.how do you redirect stdout value from a program to a file?
51.write a program that finds the factorial of a number
using recursion?
Answer Posted / supriya
46. fffffff0
49.#include<stdio.h>
main()
{
int a,b;
scanf("%d%d",&a,&b);
a=a^b;
b=a^b;
a=a^b;
printf("%d%d",a,b);
}
48.
void strcpy(char *s, char *t)
{
while (*s++ = *t++)
;
}
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What does 3 periods mean in texting?
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
What is modeling?
Is it possible to use curly brackets ({}) to enclose single line code in c program?
Is c pass by value or reference?
List a few unconditional control statement in c.
When should the register modifier be used? Does it really help?
Can an array be an Ivalue?
Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.
Where are some collections of useful code fragments and examples?
What is an auto keyword in c?
What is hash table in c?
Why is c called c?
Q.1 write aprogram to stack using linklist o insert 40 items? Q.2 write a program to implement circular queue with help of linklist?