C program to print all punctuation marks using the ispunct() function
All Answers
total answers (1)
Severity: 8192
Message: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated
Filename: libraries/Filtered_db.php
Line Number: 23
total answers (1)
Here, we will print all punctuation marks available in C language using the ispunct() function.
The ispunct() function checks whether a character is a punctuation character or not. This function is defined in ctype.h header file.
Syntax:
The function accepts a character and returns nonzero if the character is a punctuation character; zero, otherwise.
Program:
The source code to print all punctuation marks using the ispunct() function is given below. The given program is compiled and executed using GCC compile on UBUNTU 18.04 OS successfully.
Output:
Explanation:
Here, we printed all punctuation marks available in C language using the ispunct() library function on the console screen.
need an explanation for this answer? contact us directly to get an explanation for this answer