Search
 
SCRIPT & CODE EXAMPLE
 

C

C Program to Check Whether Character is Lowercase or Not using ASCII Values

#include <stdio.h>

int main()
{
  char Ch;
  
  printf("
 Please Enter any character
");
  scanf("%c", &Ch);

  if (Ch >= 97 && Ch <= 122)
   {  
     printf ( "
Entered character is lowercase alphabet") ;
   }
  else
   {
     printf("
Entered character is Not lowercase alphabet");
   }  
}
Comment

C Program to Check Whether Character is Lowercase or Not using islower function

#include <stdio.h>
#include <ctype.h>

int main()
{
  char Ch;
 
  printf("
 Please Enter any alphabet
");
  scanf("%c", &Ch);

  if ( islower(Ch) )
   {  
     printf ("
 Entered character is lowercase alphabet");
   }
  else
   {
     printf("
 Entered character is Not lowercase alphabet");
   }  
}
Comment

c check if character is lower case

char ch = 'z';
if(islower(ch))
    printf("Lower case");     
else
    printf("upper case");
CCopy
Comment

PREVIOUS NEXT
Code Example
C :: bitwise and in c 
C :: to run Blazor project using CLI 
C :: lateinit kotlin 
C :: convert c program to assembly language online 
C :: adding strings in the list 
C :: c zero out array 
C :: keep last n bits 
C :: how to take blank space in c scanf 
C :: typedef c struct 
C :: c bubble sort 
C :: pointer arithmetic in c 
C :: getchar in c 
C :: c median of array 
C :: How to copy one string into another in C 
C :: to execute a program using C 
C :: declaration in c 
C :: Command to create a static library in C 
C :: Create the static library libmy.a containing all the functions listed below: 
C :: scan c 
C :: find sum of all odd numbers from 1 to n using for loop 
C :: size of float in c 
C :: what does packing mean in c 
C :: swap using third variable 
C :: vscode how to output in seperate consile 
C :: ansi c write unsigned short to file 
C :: c create array 
C :: error: ‘_Atomic’ does not name a type 
C :: c math.h sqrt 
C :: which one is faster loop or recursive function? 
C :: command to perform safe shutdown in unix 
ADD CONTENT
Topic
Content
Source link
Name
8+8 =