C++ Variable Declaration Question

Introduction

Question

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

Variables are of char, int, and type double.

The names of the variables are arbitrary.

Since we do not use any input or output, we do not need to include the <iostream> header.



int main() 
{ 
    char mychar; 
    int myint; 
    double mydouble; 
} 



PreviousNext

Related