In The C Programming Language, 2nd Edition, by authors Brian W. Kernighan and Dennis M. Ritchie, they talk about declarators and direct-declarators. T ...
In The C Programming Language, 2nd Edition, by authors Brian W. Kernighan and Dennis M. Ritchie, they talk about declarators and direct-declarators. T ...
This program asks to enter username and password then checks if entered correctly and prints suitable statement. However, for me it only shows else ...
while cleaning an old program GCC returned a warning that I could not understand. Here is a snippet: #include <stdio.h> #include <stdint.h&g ...
I have to perform a big code fix in an old php project. The issue is the following: I have a number statements where the code tries to add integers to ...
I'm writing a Delphi app, in which I have a procedure to clear the form and reset it to its default state. I've tried everything - that first line ...
I am trying to understand when exactly a variable get memory in C when declared inside main function . I found a similar question When does memory get ...
For an assignment, I was given a header file. The objective was to write the function definitions in a C file. I am confused about how to write the d ...
I am trying to just write something that takes a month and date and prints it back out. I have written the following code: When I input a date like ...
I just started programming in C and I see on the internet people declaring chars like, for example, char name[], without putting any number between th ...
I found this code , when I compile it , the compiler tell me "subscripted value is neither array nor pointer" . I know my platform is old . but I want ...
Are we making an array of node pointers or assigning size to the node pointer? Please help me out I am stuck with this problem. ...
fellow coders.. I'm just a new learner and try to practice some programming paradigms in their specific designed environments. Recently I've learn qu ...
I am working with arrays now and the IF statement is judging wrong. I resumed my code: The Problem is that MinX is > than AM and it is not going ...
Pre: first time declaring my viewHolder and recently using Kotlin. Maybe I have a very basic error, however I cannot see it. Ty in advance. The error ...
I would like to generate a variable type and initializer from a (procedural) macro. Since macros consume and generate streams (and not trees) of token ...
I am trying to build my own calculator in Haskell with class declaration. Firstly, I was trying to implement the addition, but here I got the error: ...
I am following a tutorial and found this code: data A = B | C deriving(Eq) class K a where f :: a -> Bool instance K A where f x = x == C f _ ...
I am attempting to reserve memory for a med_array vector as seen below However, I get an error stating: medianfinderheader.h:10:4: error: 'med_arr ...
I want to return the struct that is declared, and values set inside the initializePlayer() function so I can call it on the main function. This is a t ...
Let's say test_t is defined as follows: Is it possible define a variable to be a pointer to const without modifying the definition of test_t? cons ...