George Chow
George Chow
printf outputs addresses of array items, not values. Have you got a schedule to fix issues? C code: int printf(const char* str, ...); int main() { int i; int arr[3];...
When I declared variables like below: short int a; long int b; Data type sizes were calculated wrong In function: ``` void parser_datatype_adjust_size_for_secondary(struct datatype* datatype, struct token* datatype_secondary_token) { if(!datatype_secondary_token)...
bool parser_datatype_is_secondary_allowed_for_type(const char* type) { return S_EQ(type, "long") //i.e long int, long long || S_EQ(type, "short"); //short int || S_EQ(type, "double") //???? || S_EQ(type, "float"); //???? } double and float...
C code: ``` #define TEST(s) #s int printf(const char* str, ...); int main() { printf("%s\n", TEST(hello)); return 0; } ``` When I ran the above code, it outputted: `hello)` A...
C code: int printf(const char* str, ...); struct dog { int a; int b; }; void set_dog(struct dog* d, int x) { d->b = x; } int main() { struct...
C code: `int printf(const char* str, ...); int main() { int x = 1; x *= 100; printf("%d\r\n", x); }` asm code: `section .data section .text extern _printf global main...