Skip to main content

All Questions

0 votes
1 answer
218 views

segmentation fault (core dumped) error when trying to copy from an array

trying to copy stuff from b into a but i get that error someone told me it means i'm trying to access memory that i'm not allowed to, but i don't know what should i do to make it compile. replace(txt ,...
ME Desings's user avatar
-3 votes
2 answers
2k views

Error : segmentation fault , core dumped , in c programming [closed]

the following c programming code gives a core dump segmentation fault , please tell me why i am getting this error and help me by giving a corrected version of this code .Thank you! #include <...
Divyasri K's user avatar
1 vote
0 answers
201 views

C - Error: malloc: *** set a breakpoint in malloc_error_break to debug (lldb)

I'm trying to write an exercise code. I'm getting this error and I don't know why. The error is: Exam_prep-L01E01(27381,0x1000ebe00) malloc: *** error for object 0x7fff203cffc7: pointer being freed ...
Özgün koçak's user avatar
1 vote
1 answer
238 views

Variable undeclared even if it was in C program

There is an error that says that book is undeclared and a note that says "each undeclared identifier is reported only once for each function it appears in". But I don't understand why it ...
colorless's user avatar
2 votes
1 answer
66 views

Theoretical questions about error handling in C99 [closed]

I have two questions regarding error types in C99. is "Two function definitions with identical prototypes detected" considered a compilation error or is it a linking error, I would be happy ...
Foad Hijab's user avatar
0 votes
1 answer
1k views

'%s' expects argument of type 'char *', but argument has type 'int'

I did see a similar question and the solution given was to declare it as char array and not a char. I did that and still see the error. My code is currently this : #include <stdio.h> char ...
ggbet121's user avatar
-3 votes
2 answers
87 views

What kind of errors are these? I'm having linux error even though I'm not working on linux [closed]

I was working on online compiler and this error occured. Can someone tell me what kind of errors these are and what's causing them? /usr/bin/x86_64-linux-gnu-ld: /usr/lib/debug/usr/lib/x86_64-linux-...
Anu Nema's user avatar
3 votes
2 answers
2k views

warning: passing argument 2 of ‘inet_aton’ from incompatible pointer type........ERROR

I don't know what this error means and what to do to fix it. I've been following the Sock)et Programming Tutorials In C For Beginners | Part 2 by Eduonix on Youtube but I haven't been able to run ...
somethingSomething's user avatar
0 votes
1 answer
143 views

GSL multiple error handler definition error when linking

I'm currently trying to use a library previously written by me (matrix.c) within another self-written library (Quaternion.c) by calling it through a header file using the standard method of using a "...
Ben's user avatar
  • 59
1 vote
2 answers
16k views

Error: expected declaration specifiers or '...' before string constant [puts() and gets() statement errors

After compiling my program of Dice Roll, I got this error. What is wrong with the code? Also before I was using gets() instead of scanf() command, but because of that I got this error - passing ...
Srijan Singh's user avatar
0 votes
1 answer
151 views

cause for stack smashing detected error in C

here is the code: used to calculate the other two sides of a right angled triangle when one of the cathetus( sides adjacent to the right angle) is given. (i am a beginner in C) int* ...
Khyati Jain's user avatar
14 votes
5 answers
56k views

"warning: useless storage class specifier in empty declaration" in struct

typedef struct item { char *text; int count; struct item *next; }; So I have this struct with nodes defined as above, but Im getting the error below and Im not able to figure out whats ...
spacing's user avatar
  • 780
0 votes
2 answers
5k views

How do I fix the error conflicting types? c programming

I am attempting to create a program that asks me questions but with different numbers each time so that i can practice for a school competition. This is just a simple example for one of the questions ...
JP12's user avatar
  • 1
1 vote
3 answers
854 views

How to use conditional #error

I have a an application header file in c where I mention the variable. #VAR_X "testData" User can change this variable but I want to restrict it's length to maximum of 50.If user tries to ...
Raulp's user avatar
  • 8,236
0 votes
1 answer
414 views

Code::Blocks 13.12 error - program has stopped working

I am using codeblocks 13.12. I have made a program for the following question:- Evaluate the function to 0.0001% accuracy. Sinx = x - (x^3/3!) + (x^5/5!) - ..... It gives error after I enter the ...
Mihir Bose's user avatar

15 30 50 per page