Interview Question
0of 0 votesIn C
How Can we move the output pointer some point back?
(say I want to print ABCD, but ABD is already printed now I have to print C in between B & D without deleting anything.)
Country: India
In C
How Can we move the output pointer some point back?
(say I want to print ABCD, but ABD is already printed now I have to print C in between B & D without deleting anything.)
is a comprehensive book walking you through every aspect of getting a job at a top tech company, while focuses on software engineering interviews.
CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.
Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.
Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.
store the string in linked list. then, traverse the list with two pointers p and q;
- mahi on July 08, 2012 Edit | Flag Replyq=p->next.
when p is pointing to B, q is pointing to D.
now, the code is,
newnode->data=c;
newnode->next=q;
p->next=newnode;
i think this should work.