blob: 31ed2021b0baccdb200d52aa1d4183d1cada9376 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#include "example.h"
#include <stdio.h>
int x = 42;
char *s = (char *)"Test";
void Sync::printer(void) {
printf("The value of global s is %s\n", s);
printf("The value of global x is %d\n", x);
printf("The value of class s is %s\n", s);
printf("The value of class x is %d\n", x);
};
|