Difference between strdup and strcpy in c language?
Answer Posted / kalai
strcpy - copy a string to a location YOU created (you create the location, make sure that the source string will have enough room there and afterwards use strcpy to copy)
strdup - copy a string to a location that will be created by the function. The function will allocate space, make sure that your string will fit there and copy the string. Will return a pointer to the created area.
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
How to defaultly populate charges in Clear transactions window for Cash Management?
what is node class?
what is difference between class and object in c++
Hi Friends, I am doing engg in comp sc in the final year from the evening college, I don't have experience in technical field. I am working in nontechnical field. I have big question that will IT companies considered me as fresher or they looks experience from me ? if you reply to my query, i am really grateful to you
sir i m reject two time in u.s in spring intake now im taking a date of 1july-2010 in fall intake &im competed my bachlor degree(chem) in jun-2009 so what answer i give to visa officer ask me a what r u doing last 1-year bcoz i have no work expirience
1. Describe a time when you anticipated potential problems and developed Preventive measures.
What is ball bearing concept & its design.
i have passed my gRaduation in BCA and now im looking for post graduation from Germany, i haver passed my ielts wth 6 band, nw plz tell me some question that wll ambessay ask
What is Campus selection process of patni at Adcet,Ashta at 24th dec 2010.Also give apti syllabus.
what is difference between shell commands and shell scripting commands or both r same?
I think it is 65% in 10th, 12th n BE with a 5% relaxation in any one. For west bengal bord..what will be simple average for HS...is the additional marks would be adde with 100+200=1200.and the the average will be done. OR it will be treated 65% if somebody gets 650 in HS.? Please reply for this question......... And what is the marks criteria for infosys for experienced employee.
What is the pattern for HAL Online-exam?
hi ,,,,I m going to attend corporate bank exam of specialist IT officer, I don't Know What type of question arise in interview..some suggest me my email id is surinder.singh.btech@gmail.com
hi , anyone plz end nic model papers to my id
i am satish i want to preapare for group-1 exams so please help me?