Home > Back-end >  C language subject explanation question, hope I can speak detailed points, thank you!
C language subject explanation question, hope I can speak detailed points, thank you!

Time:06-10

(1) explain statement the scanf (" % s ", address values); What is the role and meaning?

(2) the explain statement printf (" % s ", address values); What is the role and meaning?

(3) the explain statement STRCMP (str1, str2); What is the role and meaning?

CodePudding user response:

The scanf (" % s ", address values);
Enter a value, says it will enter into the address % s the value of the way the string in the
Explain statement printf (" % s ", address values)
Print the value of content, according to the print of the string
STRCMP (str1, str2)
Compares two strings str1 and str2
If the str1 and str2 same, returns 0
If the str1 & lt; Str2, returns a negative number
Str2 & gt; Str2, return a positive number

CodePudding user response:

1 obtain input string data
2 standard output string data
3 data to compare two strings

CodePudding user response:

You're missing a copy of the document, are in the document,

CodePudding user response:

reference 1st floor fireyou response:
the scanf (" % s ", address values);
Enter a value, says it will enter into the address % s the value of the way the string in the
Explain statement printf (" % s ", address values)
Print the value of content, according to the print of the string
STRCMP (str1, str2)
Compares two strings str1 and str2
If the str1 and str2 same, returns 0
If the str1 & lt; Str2, returns a negative number
Str2 & gt; Str2, return a positive number
thank you!

CodePudding user response:

refer to the second floor 7-eleven's response:
1 for input string data
2 standard output string data
3 compares two strings of data
thank you!

CodePudding user response:


I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10581430.html
I hope it can help you: https://blog.csdn.net/it_xiangqiang/category_10768339.html
  • Related