answersLogoWhite

0

What is substr function does in c?

Updated: 12/8/2022
User Avatar

Wiki User

12y ago

Best Answer

it will give the substring of length(as per the user) from the actual string,and the starting length from where it has to copy the substring from actual should be given by the user.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is substr function does in c?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What sql function returns the numeric position of a named string?

SUBSTR


How do you take substring from a given string in php?

Use the substr function. For example <?php $name= "naruto uzumaki"; echo substr($name, 0, 6) ; // The first six char are taken by this code ?> This will output naruto


How can you get a specific string from large string using c plus plus strings?

std::string::substr();


How would you implement a substr function that extracts a sub string from a given string?

substr(string, position [, count]) It extract substring starting from start and going for count characters. If count is not specified, the string is clipped from the start till the end


In what programming language is substr used?

Java is the programming language where substr is used. Substr is a command that returns the characters in a string beginning at the specified location through the specified number of characters.


What is substr in oracle?

Substring function, the same as almost any other language. You define the start position and length of the string you want returned from the main string parameter.


How do you select a substring from a string using PHP?

In php to select a sub string from a string, use the command: string substr ( string string, int start [, int length]);Simple Examples:


What is the text move function in PHP?

"Text move" isn't very clear. If you want to assign strings to different variables, use the assignment operator: <?php $old_var = 'blah'; $new_var = $old_var; echo $new_var; // Displays "blah" ?> If you want to work with a certain part of a string, use substr(): <?php $part_of_string = substr($string, $start, $length); // $start should be an integer, indicating which character to start obtaining the string at // $length should be an integer, indicating how many characters you want to obtain. echo = substr('somesimplestring', 5, 6); // Displays "simple" ?>


What is C and function it?

It is a letter and function it.


The substring method returns?

"[Substr] returns a string object with its contents initialized to a substring of the current object."


Main function in c?

The main function defines the entry point of an application in C.


What are the building function in c plus plus?

There is no such term as "building function" in C++.