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 is dynamic dispatch in c++?
How many types of operator or there in c?
Do you know what are bitwise shift operators in c programming?
What is the difference between local variable and global variable in c?
What is the difference between the expression “++a” and “a++”?
What is the need of structure in c?
How can I handle floating-point exceptions gracefully?
What is the purpose of ftell?
The process of repeatedly running a set of computer instructions until some condition is specifed a) condition b) sequential condition c) global d) iteration
How can you be sure that a program follows the ANSI C standard?
What is uint8 in c?
What's the right way to use errno?
Explain how many levels deep can include files be nested?
if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.
What is the sizeof () operator?