JiWilliams3547 JiWilliams3547
  • 25-12-2020
  • Computers and Technology
contestada

Write query to display 5 characters from the 2 nd left character onwards of the string ‘Practices'.

Respuesta :

PhantomWisdom PhantomWisdom
  • 28-12-2020

The following code is in C++

#include<iostream>

using namespaces std;

int main( ){

    char c[] = "Practices";

    for( int i =1 ; c[i] != '\0' ; c++ )

    {    

         cout<<c[i];

    }

    return 1;

}

The following code will print : ractices .

Hence, this is the required solution.

Answer Link

Otras preguntas

Which of the following is not a long-term health effect of the atomic bombings on Japan? The development of cancers like leukemia Increased likelihood of int
If lines a and b are parallel, which of the statements is true? A) m∠1 ≅ m∠6 B) m∠1 ≅ m∠7 C) m∠1 ≅ m∠8 D) m∠3 ≅ m∠5
Karl marx predicted that laissez- faire capitalism would result in 2) which tw
Why did leaders in Jerusalem arrest Jesues?
Which of the following would most likely occur if the oxygen in a pond decreased? A. Fish would grow larger. B. Fish would die. C. The temperature of the
Phenolphthalein solution is used as an indicator of acids and bases. If added to an ammonia-based solution of window cleaner, we would expect the solution to tu
Eats off of an organisms killed by other predators is called
What type of injection will the dentist most frequently use to anestetize teeth #2 through #4?
Which of the following is a from of pollution triggered by formation of a gas, and can have dramatic effects on the health of a coral reef ecosystem A)fog B)pe
103-39= how do you borrow from zero?