Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 4 months ago.
Improve this question
#include <studio.h>
int main(void) {
printf("Watch, Where, You, Walking!\n");
return 0;
}
This is the code I wrote, and here is the error message that I got:
C:\Users\exoar\OneDrive\Computer\collect2.exe [Error] ld returned 1 exit status
You have a spelling error in the first line:
#include <stdio.h> // this is the correct include-statement
Edit: This is probably not the solution to the problem. Nonetheless this is a further problem of the code.
Related
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
What is wrong with my code? It it doesn't call the function (I am an absolute beginner, just started 3 days ago).
#include<stdio.h>
#include<stdlib.h>
void whyy();
int main(){
void whyy();
}
void whyy(){
printf("lllllllllllll");
}
The void whyy(); line inside main is declaring a function, not calling one. To call the function, just name it (with its required ()):
int main(){
whyy();
return 0;
}
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 5 years ago.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Improve this question
I can't understand this code.
please help me in explaining how this code works.
#include<stdio.h>
#include<conio.h>
void main()
{
clrscr();
P
getch();
}
I'll play this silly game. Your teacher is having a joke with you.
By the magic of https://www.naclbox.com/gallery/turboc :
Consider:
Then note the hidden macro definition on line 6 (note the column number):
Voila!
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 5 years ago.
Improve this question
error: expected expression before ';' token
graph[ ptr->count ].count- ;
^
I am getting the error shown when I compile my code in Geany. Can anyone please help what to do?
Assuming you’re trying to decrement...count by 1...you need one more minus sign, like this
int i = 10;
i--;
to be a valid expression in C/C++.
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 7 years ago.
Improve this question
link to the code: http://gyazo.com/f0f4004eb606607ecaa021b5e22e6e06
I am getting the following error when i am running th code.
"error: expected identifieror '(' "
I use gedit to write this code.
I would appreciate some support guys ;)
Thanks in advance!,
Vicente
There's shouldn't be a semicolon in the int main(void); declaration.
Try replacing line 4 with: int main(void) instead.
Also, please read up on C function declaration syntax
https://msdn.microsoft.com/en-us/library/c4d5ssht.aspx.
int main(void);
^you should not do this.
And you forgot to put ; after this statement -
int height=n
And also n is not declared in your program.
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 9 years ago.
Improve this question
# define a 10
main()
{
#define a 50
printf("%d",a);
}
The output is coming 50. Why is it happening so? Shouldn't the output come 10?
Compilation happens from top to bottom. so value of a is replaced by 50 when it enters into main function.
Here the local has precedence than global