Skip to Main Content
Xpress Learning - Computer Fundamentals of Programming an IT by Pearson
book

Xpress Learning - Computer Fundamentals of Programming an IT by Pearson

by Ashok N. Kamthane, Rohit Khurana
May 2024
Beginner to intermediate content levelBeginner to intermediate
465 pages
16h 14m
English
Pearson India
Content preview from Xpress Learning - Computer Fundamentals of Programming an IT by Pearson
II-162 Programming Concepts
17.  What is the difference between the functions strcmp() and stricmp()?
Ans:  The strcmp() function compares the two strings. It is case sensitive, i.e., if we have given
two strings ‘hello’ and ‘Hello’ as input to strcmp(), return value by strcmp() will not be zero,
instead it will be 32. This is due to difference between the ASCII values of two characters (Lower case
and upper case characters: example: Difference between ASCII values of a and A). Mismatch will be
found between h and H.
On the other hand, stricmp() is also used to compare the two strings, but it is not case sensitive;
therefore, the output given ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Express Learning - Computer Fundamentals and Programming

Express Learning - Computer Fundamentals and Programming

Ashok Kamthane, ITL ESL
Windows® Internals, Sixth Edition, Part 2

Windows® Internals, Sixth Edition, Part 2

David A. Solomon Mark E. Russinovich and Alex Ionescu

Publisher Resources

ISBN: 9781299954878