What is the result of comparing two strings using the '==' operator in C?

  • It compares the ASCII values of the first characters
  • It compares the content of the strings
  • It compares the length of the strings
  • It compares the memory addresses of the strings
In C, the '==' operator compares the memory addresses of the strings, not their content.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *