summaryrefslogtreecommitdiff
path: root/testing_strings_versus_arrays.c
blob: c072efc00946ae105fd5e9d9421fc6e00bb6529c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>

int main(void)
{
	char* foo = "Hello World!\n";
	char bar[] = "Hello World!\n";


	printf("The size of char* foo is: %zu\n", sizeof(foo));
	printf("The size of char bar[] is: %zu\n", sizeof(bar));
	return 0;
}