31 questions
All I know is -Wall, -std=XXX.I want to know the flag that changes warning or warning to errorI searched it on Google and it's all in English so I can't understandㅠ
void *p = &&abc;I saw a code like this, but I don't know what it's doing. I've seen a lot of double pointers, but doesn't & mean the address?And you need two operands, so this isn't it.Wha...
I wrote a c code to run a simple shell, gave the -static option to gcc, and compiled it.The following error occurs:ld: library not found for -lcrt0.oclang: error: linker command failed with exit code ...
Is there a way to prevent the unused parameter warning from appearing on the C code?For example, Bool NullFunc(const struct timespec *when, const char *who, unsigned short format, void *data, int len)...
I recently upgraded to gcc4.3, and the following warning appears after that.I think this happened by writing char* where you need to write const char*. My code is really long. (Almost 500 files)Cannot...
Preprocessor C in GCC treated variable name linux as constant 1.//test.c:#include <stdio.h>int main(void){ int linux = 5; return 0;}Looking at the result of pretreating this with gcc-E test.c,...
The assembly that I made myself,Compared to the assembly that GCC converted in C,I want to compare how well it optimizes.Is there such a function in C like looking at machine language on Java and mnem...
for (int i = 0; i < strlen(ss); ++i){ // Hello}If you think about it, the ss might change inside the for statementI think strlen(ss) should be calculated every timeBut if you do strlen() every time...
#include <iostream>#include <clocale>using namespace std;int main() { setlocale(LC_ALL, ); wchar_t str1[] = LWBCS 1; wchar_t str2[100]; wchar_t str3[50]; wcout << str1 << endl;...
« | - 3 - | » |
© 2024 OneMinuteCode. All rights reserved.