C++ for beginners: learn in a week step by step to use c ++ programming language with practical examples for beginners by Walsh Conley

C++ for beginners: learn in a week step by step to use c ++ programming language with practical examples for beginners by Walsh Conley

Author:Walsh, Conley [Walsh, Conley]
Language: eng
Format: epub
Published: 2019-11-04T16:00:00+00:00


With this program, the output is as follows:

An example of an unsigned character value is 244

An example of a signed character value is -100

An example of an unsigned integer value is 1

An example of a signed integer value is -11

The following program is used to showcase the way we can use short and long integers in a C++ program.

#include <iostream>

int main() {

short int i1=1;

long int i2=110000000;

std::cout << "An example of a short integer value is " << int(i1) << std::endl;

std::cout << "An example of a long integer value is " << int(i2) << std::endl;

return 0;

}



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.