腾讯云618特惠专场

文章列表

#include iostreamusing namespace std;#include iomanipusing std::setw;int main () {int n[ 10 ];// n is an array of 10 integers
#include iostreamusing namespace std;int main () {char greeting[6] = {H, e, l, l, o, \\0};
#include iostream#include cstringusing namespace std;int main () {char str1[10] = Hello;
// #include iostreamusing namespace std;int main () {intvar1;char var2[10];cout Address of var1 variable: ;
#include iostreamusing namespace std;int main () {intvar = 20;// actual variable declaration.
#include iostreamusing namespace std;int main () {int*ptr = NULL;cout The value of ptr is ptr ;
#include iostreamusing namespace std;int main () {intvar;int*ptr;int**pptr;var = 3000;// take the address of var
#include iostreamusing namespace std;const int MAX = 3;int main () {intvar[MAX] = {10, 100, 200};
#include iostream#include ctimeusing namespace std;// function to generate and retrun random numbers.
#include iostream#include ctimeusing namespace std;int main() {// current date/time based on current system