[ create a new paste ] login | about

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

C, pasted on Apr 19:
1
2
3
4
5
6
7
8
9
#include<stdio.h>
#include<string.h>
void main()
{
    char word[5]={'h','a','p','p','y'};
    int result;
    result = strlen(word);
    printf("%i", result);
}


Output:
1
5


Create a new paste based on this one


Comments: