Advertisement

06.22.2008 at 11:38PM PDT, ID: 23506730
[x]
Attachment Details

string from to...

Asked by zizi21 in C Programming Language

hi,

i have a string like this:

char *string="this is a string";

is there a way in C, to say, print from the string from "is a str" ...meaning just print from index 5 to 10..etc...

i know how to use & address to print from index 5 onwards, but i cant tell it to stop at index 10..thanksStart Free Trial
[+][-]06.22.2008 at 11:42PM PDT, ID: 21843951

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.22.2008 at 11:44PM PDT, ID: 21843954

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]06.22.2008 at 11:44PM PDT, ID: 21843959

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: C Programming Language
Sign Up Now!
Solution Provided By: jaime_olivares
Participating Experts: 3
Solution Grade: A
 
 
[+][-]06.22.2008 at 11:45PM PDT, ID: 21843963

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]06.23.2008 at 03:45AM PDT, ID: 21844885

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628