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
Is there a way to compare two structure variables?
develop algorithms to add polynomials (i) in one variable
Explain Function Pointer?
What does the function toupper() do?
What is the use of sizeof () in c?
What is the difference between fread buffer() and fwrite buffer()?
Write a program to swap two numbers without using third variable?
What is the use of getch ()?
How can I open a file so that other programs can update it at the same time?
What is %lu in c?
What is the difference between Printf(..) and sprint(...) ?
What is difference between arrays and pointers?
What is time complexity c?
Write a program to check palindrome number in c programming?
What is the difference between mpi and openmp?