What is error. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is error.

Tell me the error and how to overcome it. main() { int x=10; int y=20; int z; clrcsr() z=x+y; print("%d", z) ; }

3rd Jul 2019, 5:00 PM
Anonymous World
Anonymous World - avatar
7 Answers
+ 1
clrscr(); is correct but you wrote clrcsr() .So,change that to overcome your error
3rd Jul 2019, 5:15 PM
tejaswi kanneganti
tejaswi kanneganti - avatar
+ 1
Include stdio.h and conio.h header files at the top of program
3rd Jul 2019, 5:37 PM
tejaswi kanneganti
tejaswi kanneganti - avatar
0
I have corrected it but still getting erroe
3rd Jul 2019, 5:16 PM
Anonymous World
Anonymous World - avatar
0
And the error says it's Linker error
3rd Jul 2019, 5:16 PM
Anonymous World
Anonymous World - avatar
0
I have corrected it but still getting erroe
3rd Jul 2019, 5:17 PM
Anonymous World
Anonymous World - avatar
0
printf statement is used to print but you wrote print.
3rd Jul 2019, 5:34 PM
tejaswi kanneganti
tejaswi kanneganti - avatar
0
I have written printf also
3rd Jul 2019, 5:35 PM
Anonymous World
Anonymous World - avatar