Thank You for your thorough input. I copied and pasted the definition of helper function that's why fancy colour.
Type: Posts; User: ChaturBauka
Thank You for your thorough input. I copied and pasted the definition of helper function that's why fancy colour.
I searched the term helper function and what I'm getting is that it is a function that performs part of the computation of another function and are used to make your programs easier to read by giving...
I did what you suggested, moved the code to a .c file and the prototypes to header file, and it totally makes sense now(library and header files are different), but I'm getting linker error. Here you...
I am new at this, so probably a lot of mistakes, I tried to make a header file and pasted all functions, Here:
/*linkedlist.h contains methods to delete, push, display Linked List*/struct Node{...
So I was learning about linked list and I created a method to delete the list, I am getting run-time error(unusual flow of control) with the goto statement in main function which I'm using as a...
Oh how naive I am :biggrin:
Thanks! Didn't noticed.:biggrin:
Thanks for the help but I am still getting the same error, here:
main.c: In function ‘fac’:
main.c:7:11: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token
int main(){
...
So I was trying to pass the address to a function and I'm getting some error I think which is not related to passing the address but with the function or something. Here:
#include <stdio.h>
int...
The program runs after changing the format specifier but nothing prints on the screen, and thanks for the tip!
#include <stdio.h>int main() {
char s[1000];
scanf("%s", s);//input for string
int a, b, i;//a is upper limit and b lower limit
scanf("%d", &a);//getting a
...
I won't do that again. I didn't wish to clutter here, that is why I did that. Anyway thank you again this forum is very helpful.
Thank You for your feedback, it's crucial. Leave all other errors just explain me errors related to header file and linking of multiple .c files. Your help is much appreciated.
Correct me for any naivety or repeated questions. Here is the error:
Error - Album on Imgur
Relevant links:
[C] Calc.h - Pastebin.com
[C] UnusualFlow.c - Pastebin.com
[C] menu.c -...
Thank You, now it's running. Actually I was trying to compile it online so I used this option to beautify which added this extra spaces everywhere, I usually write a very condensed code.
Thank You for your help, now its running.:cool:
I'm a complete novice to C programming and also new to this type of online discussion so bear with me, help me and correct me if I'm wrong anywhere. Here is the code:
//this program calculates...