[ create a new paste ] login | about

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

C, pasted on Sep 16:
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>
int main()
{
	struct tag{
		int a;
		float b;
	};
	
	struct tag t={10,10.23f};
	printf("%d, %.02f\n",t.a,t.b);
	return 0;
}


Output:
1
10, 10.23


Create a new paste based on this one


Comments: