Ask Question
31 August, 01:10

Write an expression that evaluates to true if the value of the string variable s1 is greater than the value of string variable s2. write an expression that evaluates to true if the value of the string variable s1 is greater than the value of string variable s2.

+2
Answers (1)
  1. 31 August, 01:14
    0
    It is not entirely clear what this question means. I am going to assume that 'value' of a string refers to a numerical value, i. e. the strings represent numbers. The question also does not mention the programming language to use. There is a function in Delphi:

    function isGreater (number1, number2: string) : boolean;

    begin

    Return StrToFloat (number1) >StrToFloat (number2);

    end;
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Write an expression that evaluates to true if the value of the string variable s1 is greater than the value of string variable s2. write an ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers