[ create a new paste ] login | about

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

C, pasted on Jul 10:
1
2
3
4
5
6
7
8
9
#include<stdio.h>
int main(int argc, char **argv){
	char str[][6] = {"forgs", "do", "not", "die"};
	printf("sizeof(str): %lu,  sizeof(str[0]): %lu\n", 
	        sizeof(str), 
	        sizeof(str[0])
	);
	return 0;
}


Output:
1
sizeof(str): 24,  sizeof(str[0]): 6


Create a new paste based on this one


Comments: