30 lines
314 B
C
30 lines
314 B
C
#include <stdint.h>
|
|
|
|
uint32_t x = 1, y =2, z[10];
|
|
uint32_t *ip;
|
|
|
|
char * ptr = "informatyk\0";
|
|
|
|
int strlen ( char *s ) {
|
|
int n;
|
|
|
|
for (n = 0; *s != '\0'; s++) {
|
|
n++;
|
|
}
|
|
|
|
return n;
|
|
}
|
|
|
|
int main () {
|
|
|
|
ip =&x;
|
|
y = *ip;
|
|
*ip = 0;
|
|
|
|
ip = &z[0];
|
|
|
|
x = strlen (ptr) ;
|
|
|
|
return 0;
|
|
}
|