#include <iostream> #include <stdlib.h> using namespace std; int main ( int argc, char *argv[] ) { int a; typeof(a) b = 14; cout<<b<<endl; return EXIT_SUCCESS; } /* ---------- end of function main ---------- *
#include <iostream> #include <stdlib.h> using namespace std; int main ( int argc, char *argv[] ) { char* sstr = "Hello World!"; char dstr[40]; memcpy(dstr, sstr, strlen(sstr)); dstr[strlen(sstr)] = 0; cout<<dstr<<endl; return EXIT_SUCCESS; } /* ---------- end of function main ---------- *