What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C Interview Questions

The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - $45,000 = 0.15 x income $45,001 - $90,000 = 6750 + 0.20 x (income – 45000) $90,001 - $140,000 = 15750 + 0.26 x (income – 90000) $140,001 - $200,000 = 28750 + 0.29 x (income – 140000) Greater than $200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.

0 Answers   Microsoft,


Program to write some contents into a file using file operations with proper error messages.

2 Answers  


What kind of structure is a house?

0 Answers  


Explain what is wrong with this program statement?

0 Answers  


Differentiate between ordinary variable and pointer in c.

0 Answers  






main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }

0 Answers   Wilco,


How can this be legal c?

0 Answers  


Find the O/p of the following struct node { char *name; int num; }; int main() { struct node s1={"Harry",1331}; struct node s2=s1; if(s1==s2) printf("Same"); else printf("Diff"); }

1 Answers  


what is the difference between c and c++?

7 Answers  


Write a program for the following series: 1*3*5-2*4*6+3*5*7-4*6*8+.................up to nterms

5 Answers   Convex Digital,


What is meaning of tree

0 Answers  


What are the types of unary operators?

0 Answers  


Categories