[ create a new paste ] login | about

Link: http://codepad.org/iVfrbVXl    [ raw code | output | fork ]

C++, pasted on Nov 23:
#include <iostream>

int main()
{
    // upon declaration
    char stuff[] = "hello world";

    /*
    // individiually
    stuff[0] = 'h';
    stuff[1] = 'e';
    stuff[2] = 'l';
    stuff[3] = 'l';
    stuff[4] = 'o';
    stuff[5] = ' ';
    stuff[6] = 'w';
    stuff[7] = 'o';
    stuff[8] = 'r';
    stuff[9] = 'l';
    stuff[10] = 'd';
    */

    cout << stuff;

}


Output:
1
hello world


Create a new paste based on this one


Comments: