C program to check if a given string is Keyword or not
Given a string, the task is to write a program that checks if the given string is a keyword or not.
- Keywords are reserved words which cannot be used as variable names.
- There are 32 keywords in C programming language.
We provide nothing but the best curated videos and practice problems for our students. Check out the C Foundation Course and master the C language from basic to advanced level. Wait no more, start learning today!
Input: str = "geeks" Output: geeks is not a keyword Input: str = "for" Output: for is a keyword
My Personal Notes arrow_drop_up