- 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 37 times
B) Write a program which implements following functions- i) Write a function substring(s, n). that takes a string and an
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
B) Write a program which implements following functions- i) Write a function substring(s, n). that takes a string and an
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)