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
Explain how can you tell whether a program was compiled using c versus c++?
Why dont c comments nest?
How is a pointer variable declared?
Explain how do I determine whether a character is numeric, alphabetic, and so on?
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.
What is the difference between the = symbol and == symbol?
What does *p++ do? What does it point to?
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
When should structures be passed by values or by references?
Difference between macros and inline functions? Can a function be forced as inline?
What is ctrl c called?
write a program to print the consecutive repeated character from the given string... input string is : hhhhjkutskkkkkggggj output should be like this: hhhhkkkkkgggg anyone help me...
Why c is called procedure oriented language?
code for replace tabs with equivalent number of blanks
What is preprocessor with example?