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 :: c defined 
C :: c pause for 1 second 
C :: command args c 
C :: c size_t 
C :: c char to int 
C :: scan c 
C :: c malloc array 
C :: how to debug a segmentation fault in c 
C :: C float and double Output 
C :: what is the last character of a string in c 
C :: Example of read and write project in c 
C :: ubuntu ocaml install 
C :: linux_reboot_magic2 
C :: swap using third variable 
C :: c program for calculating product of array 
C :: how tier lists work 
C :: Tensorflow: What are the "output_node_names" for freeze_graph.py in the model_with_buckets model? 
C :: Combine two sentences into one langage c 
C :: c enums 
C :: VLOOKUP CHECK #N/A 
C :: Dynamic Memoray alocation For 2D 
C :: como hacer para que una salida en linux aparezca de poco en poco 
C :: C (K&R) 
C :: Integer Input/Output 
C :: wpdb add temporary while drop table 
C :: Manage Menu Driven Program using switch statement 
C :: inline function in c example 
C :: change variable type in c 
C :: download file by command line windows 
C :: rpobleme valgrind 
ADD CONTENT
Topic
Content
Source link
Name
6+5 =