Page 1 of 1

B) Write a program which implements following functions- i) Write a function substring(s, n). that takes a string and an

Posted: Mon Jul 11, 2022 9:50 am
by answerhappygod
B Write A Program Which Implements Following Functions I Write A Function Substring S N That Takes A String And An 1
B Write A Program Which Implements Following Functions I Write A Function Substring S N That Takes A String And An 1 (58.38 KiB) Viewed 39 times
B) Write a program which implements following functions- i) Write a function substring(s, n). that takes a string and an integer n and return a pointer to a substring of's that begins with character at index n (indices begin from 0). For example, substring("NITJALANDHAR", 3); would return a pointer to substring "JALANDHAR" You cannot use direct string library functions to return position of specific string (like any version of strchr() function). (5 Marks)