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

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
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

Post 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 37 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)
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply