python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
why do i get Segmentation fault executing this code?
I'm trying to figure out the issue with this code:
int main(int argc, char *argv[])
{
char *s;
scanf("%s\n", s);
char *t = malloc(sizeof(*s) + 1);
strcpy(t, s);
t[0] = ...
Said laasri
Votes: 0
Answers: 2
Output is letter by letter after converting to uppercase to negate case sensitivity
I am trying to figure out what is causing my function to output letter by letter on separate lines after converting from a lowercase string to all uppercase, in an effort. My assignment is asking us t...
Emily Burney
Votes: 0
Answers: 1
Is opening and closing the same file multiple times a bad practice in C?
my C program does 3 things:
reads from a text file
converts all letters into upper-case
prints the converted text into the console.
Here are how many times I'm opening and closing those 2 files in m...
mushjoon
Votes: 0
Answers: 1
Getting no output why is that?
I', learning C and I'm getting no output for some reason, probably I don't return as I should but how I should? (described the problem in the comments below :D)
Any help is appreciated!
#include <...
Patton13
Votes: 0
Answers: 2