Click here to Skip to main content
14,386,289 members

C / C++ / MFC

 
Questionconcat two char * variables Pin
santhosh-padamatinti20-Jan-10 7:13
Membersanthosh-padamatinti20-Jan-10 7:13 
AnswerRe: concat two char * variables Pin
Rajesh R Subramanian20-Jan-10 7:26
professionalRajesh R Subramanian20-Jan-10 7:26 
GeneralRe: concat two char * variables Pin
santhosh-padamatinti20-Jan-10 7:33
Membersanthosh-padamatinti20-Jan-10 7:33 
GeneralRe: concat two char * variables Pin
Fatbuddha 120-Jan-10 7:46
MemberFatbuddha 120-Jan-10 7:46 
QuestionRe: concat two char * variables Pin
CPallini20-Jan-10 11:47
mveCPallini20-Jan-10 11:47 
AnswerRe: concat two char * variables Pin
Luc Pattyn20-Jan-10 12:18
sitebuilderLuc Pattyn20-Jan-10 12:18 
GeneralRe: concat two char * variables Pin
CPallini20-Jan-10 12:23
mveCPallini20-Jan-10 12:23 
AnswerRe: concat two char * variables [modified] Pin
santhosh-padamatinti20-Jan-10 21:13
Membersanthosh-padamatinti20-Jan-10 21:13 
My interviewer thrown a question like:

He wants to implement a function where he needs to takes two char* parameters as input at the end it should return a char* by concatenating these two char* values(without using strcat(), strcmp() functions).

required function prototype is

char* concat(const char* c1, const char* c2)




I am unable to solve this one. Please give me the approach


Thanx in advance.....

To invent something, you need a mountain of junk in your mind.
---------------------Thomas alva edison

modified on Thursday, January 21, 2010 2:21 AM

GeneralRe: concat two char * variables Pin
CPallini20-Jan-10 22:20
mveCPallini20-Jan-10 22:20 
GeneralRe: concat two char * variables Pin
Saravanan Sundaresan21-Jan-10 19:52
professionalSaravanan Sundaresan21-Jan-10 19:52 
AnswerRe: concat two char * variables Pin
Avi Berger20-Jan-10 8:11
MemberAvi Berger20-Jan-10 8:11 
AnswerRe: concat two char * variables Pin
David Crow20-Jan-10 8:53
MemberDavid Crow20-Jan-10 8:53 
GeneralRe: concat two char * variables Pin
Richard MacCutchan20-Jan-10 12:50
mveRichard MacCutchan20-Jan-10 12:50 
GeneralRe: concat two char * variables Pin
Fatbuddha 120-Jan-10 21:13
MemberFatbuddha 120-Jan-10 21:13 
GeneralRe: concat two char * variables Pin
CPallini20-Jan-10 21:51
mveCPallini20-Jan-10 21:51 
GeneralRe: concat two char * variables Pin
Richard MacCutchan20-Jan-10 23:14
mveRichard MacCutchan20-Jan-10 23:14 
QuestionRe: concat two char * variables Pin
CPallini20-Jan-10 23:19
mveCPallini20-Jan-10 23:19 
AnswerRe: concat two char * variables Pin
Richard MacCutchan21-Jan-10 0:15
mveRichard MacCutchan21-Jan-10 0:15 
GeneralRe: concat two char * variables Pin
CPallini21-Jan-10 0:29
mveCPallini21-Jan-10 0:29 
GeneralRe: concat two char * variables Pin
Richard MacCutchan21-Jan-10 0:36
mveRichard MacCutchan21-Jan-10 0:36 
QuestionModal vs Modeless dialog box Pin
msr_codeproject20-Jan-10 7:05
Membermsr_codeproject20-Jan-10 7:05 
AnswerRe: Modal vs Modeless dialog box Pin
Richard MacCutchan20-Jan-10 7:08
mveRichard MacCutchan20-Jan-10 7:08 
AnswerRe: Modal vs Modeless dialog box Pin
Rajesh R Subramanian20-Jan-10 7:58
professionalRajesh R Subramanian20-Jan-10 7:58 
QuestionRaeding and parsing mails via POP3 Pin
VictorSotnikov20-Jan-10 5:52
MemberVictorSotnikov20-Jan-10 5:52 
AnswerRe: Raeding and parsing mails via POP3 Pin
Richard MacCutchan20-Jan-10 6:47
mveRichard MacCutchan20-Jan-10 6:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.