Ask Question - Get Answer

1 Ans Various Types of errors in C programming

Asked by AL MaMun (4 Golds) Monday, 06 Sep 2021, 08:19 PM at (Education Engineering)

Please log in to answer, like and save
0
Save 0

<<< Previous
Log in to Answer Next >>>

Answer(s):

Various Types of Error in C programming:

1. Syntax error
2. Run-time error
3. Linker error
4. Logical error
5. Semantics error


#include<stdio.h>
int main()
{
printf("Hello")
return 0;
}

#include<stdio.h>
int main()
{
int a=10;
printf("%d",a/0);
return 0;
}

#include<stdio.h>
int Main()
{
int a=4/2;
printf("a=%d",a);
return 0;
}

#include<stdio.h>
int main()
{
int sum=0, i, k=1;
for(i=1;i<=10;i++);
{
sum=sum+k;
k++;
}
printf{"sum=%d",sum);
return 0;
}

#include<stdio.h>
int main()
{
int a=1, b=2, c=3;
a+b=c;
return 0;
}

Answered by AL MaMun (4 Golds) Monday, 06 Sep 2021, 08:22 PM

Please log in to Upvote, Downvote and Report
           

Related Q/A:

1 Ans Classification of Computers

1 Ans What is booting? Write the steps of booting.

1 Ans What is BIOS in a computer system ?

1 Ans MS Word all Keyboard shortcuts Read and share now

1 Ans What is virtual memory?

1 Ans What is a Firmware?

3 Ans Write all HTML tags

2 Ans SRS meaning?

1 Ans Why Dynamic RAM (DRAM) needs to be refreshed?

1 Ans How to install graphics.h in codeblocks - learn easily