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
What are the header files used in c language?
Can the “if” function be used in comparing strings?
What is the difference between break and continue?
What is formal argument?
What is infinite loop?
How will you declare an array of three function pointers where each function receives two ints and returns a float?
Explain spaghetti programming?
Explain the difference between malloc() and calloc() in c?
What are the characteristics of arrays in c?
What are variables and it what way is it different from constants?
code for quick sort?
Which is more efficient, a switch statement or an if else chain?
What are compound statements?
What is the hardest programming language?
Can a function argument have default value?