Post-laboratory Problems

103 views 7:03 am 0 Comments August 2, 2023

Post-laboratory Problems 1. Write and run a C++ program to test the strncmp() function. 2. Write and run a C++ program that does exactly the same task of strncpy() without using the default strncpy() function. 3. Write and run a C++ program that does exactly the same task of strcat() without using the default function strcat(). 4. Write and run a C++ program that counts the vowels of a given string. 5. Write and run a C++ program that reads one line of text and then prints it with all its blanks removed. 6. Write and run a C++ program that reads one line of text and then prints the line in reverse order. Fol- lowing is an example of the console output. Input: Today is Friday. Output: .yadirF si yadoT

Tags: , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,