Client Login Register
Calculate Price & Order →
← Back to all articles

Assignment and a small discussion

Published on December 02, 2026 • Category: Academic
Assignment and a small discussion

Assignment and a small discussion

Assignment

Write a function to take a string of no more than 50 characters and a character and returns the count of a letter the user inputs. If the letter is not found, the function returns -1. Use the function in main to get two inputs from the user, a sentence and a character, then show the count of that character.

Discussion

For this discussion write a unique code snippet that demonstrates the use of one of the string functions of string.h that were covered in the slides. Make sure to add a comment to explain.




Share

We only email you; unsubscribe in one click. No address is ever sold.

Ask about study support 💬 WhatsApp 📞

Just now