This blog is under construction

Saturday, 17 March 2012

islower example in C

Header file:
    ctype.h

Synopsis:
    int islower (int input)

Description:
    checks whether the given input is a lower case character or not.

Return Value:
    TRUE(a non-zero value) on success
    0 on failure


islower function C example


  #include<stdio.h>
  #include<ctype.h>
  int main() {
       char a;
       printf("Enter a character:");
       a = getchar();

       if (islower(a))
         printf("The given character is in lower case\n");
      else
         printf("The given character is not in lower case\n");

       printf("Return value from islower:%d\n", islower(a));
       return 0;
  }



  Output:
  jp@jp-VirtualBox:~/$ ./a.out
  Enter a character:a
  The given character is in lower case
  Return value from islower: 512


1 comment:

  1. It has been simply incredibly generous with you to provide openly what exactly many individuals would’ve marketed for an eBook to end up making some cash for their end, primarily given that you could have tried it in the event you wanted.

    Data Science Interview Questions

    Angular JS Interview Questions

    Big Data Training in Velachery

    AWS Certified Developer

    Best Resource of Learning Devops

    Blueprism Interview Questions

    Automation Anywhere Interview Questions

    ReplyDelete