c tag

1304 questions


1 answers
89 views
0
Is the size of the pointer always 4?

On my computer,sizeof(char*) = 4sizeof(int*) = 4sizeof(long long*) = 4Then does the pointer size have to be 4?

2 years ago

2 answers
28 views
0
Why do you use #ifndef IN #define IN in C language?

<Header File>#ifndef OUT#define OUT#endif#ifndef IN#define IN#endif<Source medium>//********************************************************************************************************...

c
2 years ago

1 answers
29 views
0
C language question

I'm a student who transferred late and is practically self-taught.I'm writing a grade management program for my assignment, but there's a blockage, so I'm asking you a question. typedef struct { int n...

c
2 years ago

1 answers
30 views
0
c Code error multiplying the language number.

It's a code that goes up by multiplying the number.The code below is printed.There's an error code somewhere.Which part should I fix?Code must not be added.Code void one(void);void two(void);int times...

c
2 years ago

1 answers
97 views
0
How to initialize private static members

How do I initialize private static member?There is an error in the way I did itld: 1 duplicate symbol for architecture x86_64clang: error: linker command failed with exit code 1 (use -v to see invocat...


1 answers
71 views
0
I have a question about malloc free order

Why is it that I have to do the reverse free for the malloc order?

2 years ago

1 answers
80 views
0
Difference between foo(void) and foo() in C/C++

How are these two different?If the two are the same, why is there a void factor?

2 years ago

1 answers
52 views
0
How do I enter binary numbers?

const x = 00010000;Like the octal and hexadecimal numbers start with 0x, Is there a function to specify binary numbers?

2 years ago

1 answers
130 views
0
What's the difference between int * const and const* and int const *?

What's the difference?The pointer is too hard ㅜ

2 years ago

1 answers
121 views
0
How do I print "unsigned long"?

I know how to output the int, long, float, and double types in CI don't know how to print unsigned longprintf(%lu\n, unsigned_boo)printf(%du\n, unsigned_boo)printf(%ud\n, unsigned_boo)printf(%ll\n, un...

« - 82 - »

© 2024 OneMinuteCode. All rights reserved.