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 / siyaoberoi

44. strcpy() copies only string.it doesnt copy the memory
location.memcpy() copies the memory location of the string.

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is structure data type in c?

651


What do you mean by c?

684


Explain how do you list a file’s date and time?

711


please explain every phase in the "SDLC" in the dotnet.

2280


What does c in a circle mean?

667






How are 16- and 32-bit numbers stored?

841


Explain data types & how many data types supported by c?

676


What is the difference between scanf and fscanf?

749


Hai what is the different types of versions and their differences

1595


Explain how can you determine the size of an allocated portion of memory?

717


Is there a way to have non-constant case labels (i.e. Ranges or arbitrary expressions)?

674


What is the difference between class and object in c?

673


Why is c so important?

682


How does selection sort work in c?

713


What is double pointer?

650