C
Q. Which function is used to compare two strings in C?
The function strcmp() is used to compare two strings in C language. The strcmp() is a built-in library function and is declared in <string.h> header file. This function takes two strings as arguments and compare these two strings lexicographically. Syntax: int strcmp(const char* str1, const char* str2);
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. How are String represented in memory in C?
Q. #define can be used to define alias for values as well
Q. Size of the array need not be specified, when
Q. How do you accept a Multi Word Input in C Language?
Q. How many types of qualifiers are there in C language?
Q. What will be the output of the following C program?
Q. What is the output of C program with strings?
Q. What is the value of an array element which is not initialized?
Discusssion
Login to discuss.