by samrprog on July 26th, 2009

samrprog

Question

Help answer this question below.

Write a program to extract a portion of a character sting and print the extracted string. Assume that m
characters are extracted, starting with nth character.

Answers. 2 helpful answers below.

  • by Jack on July 26th, 2009

    Jack

    For C
    #include <stdio.h>
    void main()
    {
    String ="Hello"; //the string given
    //Use type casting to convert Sting into Array
    //Suppose to an array a then as follows
    int n;
    scanf n;
    char reqchar=a[n];
    //print the req array
    }

    No comments. Post one | Permalink

  • by Jack on July 26th, 2009

    Jack

    You forgot to mention the biggest the most important thing WHICH LANGUAGE program do you want. i know C,C++,Java Go On

    No comments. Post one | Permalink

Want to attach an image to your answer? Click here.

Did this answer your question? If not, then ask a new question or create a poll.

You're reading Write a program to extract a portion of a character sting and print the extracted string. Assume that m characters are extracted, starting with nth character.

Follow us on Facebook!

Related Ads

ANSWERBAG BUZZ

Ladies topics
Write a program to extract a portion of a char string and print it using function
Java program to extract a portion of a character string
Write a java program to extract a portion of a character sting and print the extracted string assume that m characters are extracted starting with nth character
Write a program to extract a portion of a character sting and print the extracted string assume that m characters are extracted starting with nth character