12/09/20
Which reason for the fall of Rome do you believe is the most significant in the collapse of the empire, why
Which reason for the fall of Rome do you believe is the most significant in the collapse of the empire, why
12/01/20
How did the Enlightenment present a challenge to the Classical Worldview?
Please give a long, detailed answer How did the Enlightenment present a challenge to the Classical Worldview?
08/30/19
How do I write maintainable CSS?
06/12/19
What is a "static" function?
The question was about plain [tag:C] functions, not [tag:C++] `static` methods, as clarified in comments.Ok, I understand what a `static` variable is, but what is a `static` function?And why is it...
more
06/06/19
How to split a string literal across multiple lines in C / Objective-C?
I have a pretty long sqlite query: const char *sql_query = "SELECT statuses.word_id FROM lang1_words, statuses WHERE statuses.word_id = lang1_words.word_id ORDER BY lang1_words.word ASC";How can...
more
06/04/19
my code crashes in the second loop operation(C Programming)
its aim is to get a number from the user and create that number of kind of television programs and save their information based on structures.it gets the program name ,hour,etcunfortunately it...
more
06/03/19
Understanding typedefs for function pointers in C?
I have always been a bit stumped when I read other peoples' code which had typedefs for pointers to functions with arguments. I recall that it took me a while to get around to such a definition...
more
06/03/19
Can someone please tell me if my code has anything wrong with it?
I have this project for school where I have to fund a formula and make a program to calculate it. I chose the control formal for bullet ballistics, which is X = (v² / g) * Sin(2 theta) , where X =...
more
Extract file basename without path and extension in bash?
Given file names like these:
/the/path/foo.txt
bar.txt
I hope to get:
foo
bar
Why this doesn't work?
#!/bin/bash
fullfile=$1
fname=$(basename $fullfile)
fbname=${fname%.*}
echo...
more
05/31/19
How do you get assembler output from C/C++ source in gcc?
How does one do this?
If I want to analyze how something is getting compiled, how would I get the emitted assembly code?
What is Linux’s native GUI API?
I hope this doesn’t come across as a stupid question but it’s always something I have wondered. Both Windows (Win32 API) and OS X (Cocoa) have their own APIs to handle windows, events and other OS...
more
Why does the C preprocessor interpret the word "linux" as the constant "1"?
Why does the C preprocessor in GCC interpret the word `linux` (small letters) as the constant `1`?
test.c:
#include
int main(void)
{
int linux = 5;
return 0;
}
Result of `$ gcc -E...
more
How to permanently set $PATH on Linux/Unix?
I'm trying to add a directory to my path so it will always be in my Linux path. I've tried:
export PATH=$PATH:/path/to/dir
This works, however each time I exit the terminal and start a new...
more
03/16/19
What is the difference between char s[] and char *s?
In C, one can use a string literal in a declaration like this: char s[] = "hello";or like this: char *s = "hello";So what is the difference? I want to know what actually happens in terms of...
more
Still looking for help? Get the right answer, fast.
Ask a question for free
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Find an Online Tutor Now
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.