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


3 comments:

  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
  2. Your info is really amazing with impressive content..Excellent blog with informative concept. Really I feel happy to see this useful blog, Thanks for sharing such a nice blog..
    If you are looking for any Data science Related information please visit our website best course for data science page!

    ReplyDelete
  3. Do you need Finance? Are you looking for Finance? Are you looking for finance to enlarge your business? We help individuals and companies to obtain finance for business expanding and to setup a new business ranging any amount. Get finance at affordable interest rate of 3%, Do you need this finance for business and to clear your bills? Then send us an email now for more information contact us now via (financialserviceoffer876@gmail.com) whats-App +918929509036 Dr James Eric Finance Pvt Ltd Thanks

    ReplyDelete