C++ Variable Definition Question

Question

Write a program that defines three variables inside the main function.

The variables are of char, int, and type double.

The names of the variables are arbitrary.

The initializers are arbitrary.



int main() 
{ 
    char mychar = 'a'; 
    int myint = 123; 
    double mydouble = 456.78; 
} 



PreviousNext

Related