Ask Question
23 February, 03:49

Assume that c is a char variable has been declared and already given a value. Write an expression whose value is true if and only if c is a newline character.

+3
Answers (1)
  1. 23 February, 06:17
    0
    (c = = '/n')

    Explanation:

    The following code in C+ + shows the use of this expression

    #include

    using namespace std;

    int main ()

    {

    char c;

    cout<<"Enter a character for c"<
    cin>>c;

    if (c = = '/n') {

    cout<<"True"<
    }

    else

    cout<<"False"<
    return 0;

    }
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Assume that c is a char variable has been declared and already given a value. Write an expression whose value is true if and only if c is a ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers