[ create a new paste ] login | about

Link: http://codepad.org/zZSrlqvn    [ 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[10]={'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: