[ create a new paste ] login | about

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

C, pasted on Sep 16:
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <stdio.h>
#include <string.h>
int main() 
{
	char str[20] = "ABCDEFGHIJK";
	int s = strlen(str);
	
	str[3] = '\0';
	s = strlen(str);
	
	printf("%d\n",s);
	return 0;
}


Output:
1
3


Create a new paste based on this one


Comments: