Skip to content

Latest commit

 

History

History
24 lines (19 loc) · 374 Bytes

95.md

File metadata and controls

24 lines (19 loc) · 374 Bytes

题目:简单的结构体应用实例。

#include <stdio.h>

struct programming
{
	float constant;
	char *pointer;
};

int main()
{
	struct programming variable;
	char string[] = "hubojing https://hubojing.github.io";

	variable.constant = 456.634;
	variable.pointer = string;

	printf("%f\n", variable.constant);
	printf("%s\n", variable.pointer);

	return 0;
}